 Justice Gorsuch, writing for the majority, said if you fire an individual for being gay or transgender, you're discriminating on the basis of sex. Now, at no point did the court say sex and gender identity are the same. The holding was because underlying sex is the criteria on which we look at attitudes and behaviors.