>>9881884Sex is "assigned" via the presence of the SRY gene on the Y chromomome, which turns the hermaphroditic foetus into a male foetus. Without the presence of the SRY gene, the hermaphroditic foetus will default into a female foetus, causing the regression of its mesonephric ducts (embryonic male reproductive system) and proliferation of the paramesonephric ducts (embryonic female reproductive system).
Gender is a series of cultural and psychological ideas surrounding the sexual binary of males and females. That, as it involves society and culture, is a LOT more complicated and nebulous. Sex, however, is not. Sex is a clear-cut matter of being male, female, or having an intersex condition. Though continua of biological variables give rise to heterogeneity in males and females, such that there is sufficient overlap between the sexes, this does not mean that sex is a spectrum. If the paramesonephric ducts regress and the mesonephric ducts proliferate, this produces a male, vice versa, a female. If something goes wrong in this process, an intersex intervidual is produced.
The only real human "assignment" of gender is linking biological females (males) with the social roles of women (men), which is a relevant sociological matter, but not a biological one. As gender dysphoria is a known psychiatric condition, we observe a portion of trans discourse to contain a bending of self-schemata in order to realign gendered issues ego-syntonically. In other words, trans ideology is, in part, a therapeutic delusion. This is evidenced by the rejection of genetic and biological reality as "offensive": arguments are negated if they do not placate the gender-dysphoric ego.