To recognize or perceive differences; to distinguish.
The software can discriminate between different types of data.
To make a distinction in favor of or against a person or thing based on the group, class, or category to which they belong rather than on individual merit.
It is illegal to discriminate against someone based on their race or gender.