Start two new groups.
Trans men and trans women.
Let them compete against each other. Job done.
No one will watch, but they can still get a participation
trophy.
Eliminate men’s and women’s sports and move to XY and XX sports. No matter what mutilation is performed on your body, you compete in the group determined by your chromosomes. Problem solved.