You'd need the courts for a definitive answer but it seems legally sound to me:
Section 13 The Equality Act 2010
(1) A person (A) discriminates against another (B) if, because of a protected characteristic, A treats B less favourably than A treats or would treat others.
(2) If the protected...