Sex is biological.
Gender, like race, is subjective.
Gender is a grammatical term that refers to nouns and adverbs. People have a sex; they do not have a gender.
Apparently they do if they say they do.
Fine by me.
I can be anything I bloody well feel like!