Okay, having thought about this topic a bit more, I'd replace the whole draft with two clauses:
The perception, whether true or not, of a person's sex, sexual orientation, or gender identity may not be used as a defence to a criminal offence, excuse or justification of criminal conduct, or evidence for mitigating a criminal offence's severity in sentencing.
The use of force against another individual is not justified by the mere discovery, knowledge, or disclosure of that individual's sex, sexual orientation, or gender identity.
(If you want to use these clauses, please credit me as a co-author.) The topic of victim compensation seems gravely unclear to me. What is being compensated for which the victim (or heirs thereof) would have otherwise been entitled to?