Stunning Strike states that:
When you hit another creature with a melee weapon attack, you can spend 1 ki point to attempt a stunning strike.
However, some creatures are immune to the types of damage (bludgeoning, piercing, slashing) that can be dealt with melee weapon attacks.
My interpretation is that an attack can still hit, but would be guaranteed to do zero damage. And assuming it did hit, an attempt can still be made to stun the creature.
Is this interpretation correct?