Well actually in a job search you also discriminate. You discriminate based on education, skills, etc. That is also the point of a job interview.  The problem is not discrimination. It is discrimination based on illegal (or unethical) grounds.