(from Cambridge Learner's Dictionary)

 

discriminate verb [I]

1 to treat someone unfairly because of their sex, race, religion, etc

The company was accused of discriminating against people on the basis of age.

2 to notice a difference between two things

Police dogs are very good at discriminating between different smells.