It is illegal to 'discriminate' on the grounds/basis of race/sex. [=it is illegal to treat someone differently because of his or her race/sex]
He is old enough to 'discriminate' [='distinguish, tell'] right from wrong.
I can 'discriminate' [='differentiate'] the individual voices in the choir.
(..) What's wrong with you? It's supposed to be a celebration. It's a celebration of your faith, not mine. Well, that's the virtue of wine. It doesn't discriminate. So what happened with you and Tirzah? Your mother doesn't want us speaking. And who cares what Mother wants? Your mother cares. And? (..)2016 Ben-Hur