I feel like this game needs a grid system. You can just place everything on top of each other and since you are using "OnMouseButtonDown" the land behind it wont be affected since the raycast doesn't reach the game objects
The buildings should not be placeable on itself, but the planets, I agree with you