Regardless, if the pay is less than other men and it needs to go to court, then the judge will be correctly and appropriately covered under the EA due to gender reassignment.
Or is there some nonsense claim that to do so would be “outing”.
If you want equality, then own the truth and use the law. That’s what it’s there for.