View attachment 253074
Look, if you want to ignore the designer's intent, that is your choice.
The designer's intent is clear. You pick an unoccupied space and go there. If you're saying that you teleport to any random space within 30 feet that you can see, that would allow what you say, but then it would be nearly useless as the DM would get to decide where you end up.
Either you pick a single space and go as intended, or the spell picks for you. It's not both. Nothing in RAW or RAI says that you would end up one space away if you pick an occupied square.
Technically, the spell does not even say a space YOU CHOOSE, just an unoccupied space you can see. So, speaking strictly RAW, it could be any random space that is unoccupied within 30 feet of you that you can see...
That's clearly not the intent, though. It would be a virtually useless spell if that happened.
Finally, nothing in the spell says it wouldn't work as I suggest, and given the precedence for other spells/features which specify you end up in the nearest unoccupied space, I would go with that since nothing, RAW, supports the spell simply failing, either.
Games don't work that way. Nothing in the spell says that it doesn't detonate a nuclear explosion, either. You can only go by what rules DO say, not by what they don't say.
If the spell doesn't say you are shunted to the nearest occupied square, by RAW it simply does not do that. The DM can of course change it, but that becomes a house rule for that spell.
Lastly, given precedence for other teleport spells that specify what happens, you would take 4d6 and not move, per Dimension door, the closest teleport spell to misty step.
"If you would arrive in a place already occupied by an object or a creature, you and any creature traveling with you each take 4d6 force damage, and the spell fails to teleport you."