If anything chromossomes would be the key determinant of sex, not gender. But even that's not how we attribute sex: biologically sex is attributed by the capacity to generate small or big gamete, which means that someone who doesn't produce either type, such as a child or elderly person has no sex.
This is absurd and offensive, and seems like something taken straight out of transsexual propaganda or fantasy.