The thing is that if it were possible to wave a wand and magically change sex, dysphoric individuals would realise that the nature of their plight is not located where they think it is.
Your body is your interface with the world. Your eyes, ears, nose, mouth, skin, muscles, nerves: all of it provides you with the stimuli that builds your experience of existence.
If you change your body, you change your experience of the world. We are not souls locked in a husk or a shell; the body and personality/character are in a symbiotic relationship. You change the body, you alter
the "soul".
You see this very clearly when people start a sport or get fit, or alternatively when people suffer ill health or become elderly. Their "souls" (characters/personality) change because their interface (their body) is giving them different information about the external world.
Elderly people come to feel vulnerable, not because they've spent eighty plus years on the earth, but because their bodies no longer allow them to sprint away from the metaphorical tiger in the grass, so they feel vulnerable crossing a busy road etc.
Likewise, people gain confidence and strength when they start, say, a couch25k because their muscle tone changes and, suddenly, actions that were tiring before don't seem so difficult.
I say all this because if that magic wand existed, and someone could change sex, you would be talking about a wholesale change in stimuli fed to the "soul".
I find it so weird that postmodernism is blamed for all this identity plight, when it is postmodernism that recognises this precise phenomenon. Postmodernism argues that you can never know the truth of something or someone because every individual experiences the world through a unique set of parameters, so unique that we essentially exist within our own individual universes.
You change those parameters, you change everything.