Its totally wrong and you would win an unfair dismissal claim. problem is you would only win satisfaction and your notice period.
If it was discrimination you would win a good amount but you have to ask yourself " would anyone take this on"
Happy to talk to you about it if you need help.