If you look down and see that you have a penis and declare that you are a woman... there is a "glitch" in your mental processes... not your biology.
Even Tyrone concedes this point and advocates for treatment of those suffering from "gender dysphoria."
However, no one wants to delve into the etiology of THAT syndrome and the related ramifications for human psychology in general... for good reason!
So, the easy answer for SCOTUS is to rule that unless Congress passes legislation redefining sex the Court will live with the biological fact of life.