Discrimination is more often ok (and legal) than otherwise. To select the best qualified person for a job, based upon objective criteria, is discrimination. So is selecting Oscar/Grammy/Golden Globe winners. So is deciding upon a stout rather than a light lager, or a Republican/Democratic/Libertarian/Independent political candidate. Some forms of discrimination are illegal (literally); these are discrimination based upon gender, race, national origin, age (old only...young people are fair game), religion, and disability. In some jurisdictions, sexual orientation is included.