“Gender” may be imaginary, but one’s sex is a biological fact.
XX = Female XY = Male
any other occurrences are so infinitesimally rare as to not be worried about.