All very true.
And yes: several issues are often helpfully conflated.
Where there is an absolutely reasonable desire due to identity and/or transition (not wanting to make assumptions) for privacy from other patients of that sex, for safety from harassment or worse, for personal identity to be supported and recognised, and all this involving someone who may be unwell, incapacitated, vulnerable - yes, absolutely that person should have an unquestioned right to be placed in a situation where their feelings of safety, dignity, privacy and emotional needs can be met.
When however you conflate the aspect of required action that demonstrates treating that person as if they were someone of the opposite sex, this presents that it is not possible to provide this patient with any of the above without removing the right of all female patients to have their feelings of safety, dignity, privacy and emotional needs met.
That puts forward a very basic, sex based inequality: the needs of a male for x must take priority of the needs of all female patients for x. Male trumps female. Hello good old fashioned male supremacism.
When you add to this the idea of 'educate' the female, also likely to be incapacitated, unwell, vulnerable and in no state to advocate for themselves, who shows distress or protests their own right to the privacy, dignity, recognition of individual need and identity that is regarded so important to the male patient - which means essentially to warn them that they must behave as if they do not expect that right and that the male patient's needs must be their priority over their own needs - and that this may quite possibly lead to female patients discharging themselves and not being able to access any medical care in that place so that a male patient may have their exact choice of where and how they receive care...
It's unjustifiable.
It is absolutely right and possible to provide additional and inclusive provision to meet needs. It is absolutely wrong and unjustifiable discrimination to remove the exact same rights from female patients as are seen as so important for male patients, and female people should not be put in the position of being used in a wholly sex class based way, without equal recognition of their own needs, differences and diversity, to meet the needs of male people.