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.
> sexism > noun sex·ism \ ˈsek-ˌsi-zəm \ > 1 : prejudice or discrimination based on sex; especially : discrimination against women
> racism > noun rac·ism \ ˈrā-ˌsi-zəm also -ˌshi- \ > 3 : racial prejudice or discrimination
Sexism is defined as discrimination based on gender or biological sex.
Both are well defined terms in English both in dictionaries and general usage. Stop trying to play games with words and start explaining why you think racism and sexism are ok.