It's such a bad faith comparison to make about trans people.
One's race oftentimes comes with a slew of cultural background, and misappropriation of that isn't cool.
Gender meanwhile is just a societal constrict built of the typical characteristics of the sexes - if you don't line up with the one given to you at birth, then there's no reason why you shouldn't be able to identify with what you do line up with.