Hey, not a dev but from my experience playing this a lot in different ways I dont think it was the clothing choice. The puberty potion is meant to be a way to stop your character from undergoing female development and puberty.
Yeah, the puberty potion is basically the trigger for being able to have your Mordred be non-binary/trans. The clothing has nothing to do with that.