All babies start out female in the womb, until an X chromosome decides to mutate or not. It's the only reason men have nipples. Perhaps there is some truth to the statement when a man says he was "supposed to be" a woman. The same argument can't be made for transmen however. So what's their excuse? Did nature "make a mistake" with them too, forcing a person to be born into the wrong body?
Just to clarify and have a private beef about the terms "trans"gender and "trans"sex. Nobody "trans"s because nobody changes sex or gender. Born male, always male. Born Female, always female. So no - men or women do not "trans".
BTW, in your question, you mean transex, not transgender.
That's not how it works. It about the hard-wiring of the brain, not chromosomes. Watch the following video between 13:50 and 15:45 https://www.youtube.com/watch?v=fefu33e8O-0&fbclid=IwAR21IkR9BGOWozXm8SQQJqZGWaQA1c2726e4AGHiNpp-eDDcRNX3G39Li_c&app=desktop
Pay more attention in Biology class. Mutation is not involved. The father donates either an X or a Y chromosome. What may have you confused is that the early stages of development are neutral. Eventually, certain structures differentiate into either male or female structures: head of penis or clitoris, shaft of penis or labia minora, scrotum or labia majora, and so forth.