Luckily, this country has a better way of doing things.
When crimes are committed, the police have to prove that the perpetrator was motivated by
racial hatred/homophobia/transphobia/whatever.
Sometimes it's obvious - eg things like grafitti (criminal damage)
Sometimes it isn't and you have to probe the perpetrator's story, in an interview. Let's take an example, where the word 'pedo' (sic) has been painted on someone's wall. The victim isn't a paedophile, but they are trans.
In interview, the perpetrator tells you that they believe all gay men are disgusting kiddie fiddlers and that's why they wrote it.
In this case, the crime was motivated by homophobia, not transphobia. The fact that the perpetrator doesn't know his arse from his elbow and has confused a transwoman with a gay man, is neither here nor there. The important thing is: what's behind the crime?
The fact that the transwoman believes that the crime was motivated by transphobia is irrelevant. They don't call the shots. They don't know what was in the perpetrator's head.
It's not usually as complicated as that, but it happens.
I think we've got the right idea. I think Switzerland will tie itself up in knots - but I note that it uses the twin terms of homophobia-transphobia, as if anticipating the sort of situation that I have outlined. Yep, good luck with that, Swiss Police.