If yes, then it would mean that wearing a "there are only 2 genders" tshirt would essentially count as harassing a protected class based on their belonging to that protected class. Which seems like pretty clear grounds for termination, and no "this is just my religion" excuses are going to help here.
Just like wearing a quote from the bible on your tshirt saying that women aren't supposed to hold seniority over men would very certainly get you fired as well, despite that being a part of your religious textbook and you belonging to that protected class.