Sexes are different then genders. (3 because of intersex)
Your sex is your gender assigned at birth.
Gender identity is different.
Someone's gender identity changes if how they feel doesn't match their sex.
There's a reason most official documents of people have "Sex: M/F" instead of gender.