The funny thing about how planets look is the closer you get to them, the further away they seem. When you're across the system from them, they're so big they look like you could reach out and touch them. But when you're docking at a station right next to one, the curvature and the atmosphere effect make it look hundreds of miles away, like you're really in orbit.
But don't be fooled by this latter illusion. Some stations and of course the landing rings are RIGHT ON the edge of the planet object. If you're not careful, you can kill yourself easily. It looks like you've got miles of space under you, but you really only have a few inches.
The AI dies this way all the time. Go hang out at near a base that's right next to a planet and wait for a large convoy to dock with it. As the various ships maneuver to line up with different docking ports or position themselves in the waiting line, some will bump the edge of the planet and crash and burn. I've seen as many 3 ships in a convoy do this one after the other.
No wonder prices are so outrageous