Having the legal right to discriminate makes it no better to do so. That's called rule by law, rather than the rule of law. All sorts of unbelievably heinous things have been perfectly legal in this country and others.
Being legal has no bearing on it being discrimination or not, or being wrong or not.
|