The problem then are male prisoners, are they not? In fact, trans women are 13 times more likely to be assaulted in prison [1] than cis-male ones.
The solution is obvious - more guards in prison, segregate prisoners with a violence or sexual assault history, and maybe imprison less people in the first place because many prisons are plain and simple overcrowded.
> Whereas the latter - eliminating male physical advantage from competition - is necessary for fairness and, in the case of contact sports, for safety.
Regarding the safety aspect in contact sports - I think the better solution is to leave that decision to the women themselves, but generally I'd more argue to ban or seriously restrict contact sports because a looot of them have had very nasty links to brain injuries uncovered.
> Evidence-based policy approaches typically draw the line at the male physical advantage of testosterone-driven development.
The question remains: do we really want to require athletes to submit to full-blown genetic and hormonal assays? Do we really want to require minor athletes to submit to genital examinations for no medical reason? The obsession a lot of people have with genitalia is absurd.
[1] https://edition.cnn.com/2021/06/23/us/trans-women-incarcerat...