What you just described is the definition of discrimination, not racism or sexism. These words have meanings and you can look them up. Saying it's racist and sexist is just a disingenuous way to shore up drama when a more accurate (but less provocative) term is available.