A better example would be casting for a film. You can definitely cast only Aryan men for a Nazi role. That would be reasonable and the law permits that. Generally speaking cases of discrimination are settled in court and judges have the latitude to, well, judge.