Thoughts on "discrimination."
Sense 1) recognize a distinction; differentiate.
"babies can discriminate between different facial expressions of emotion"
synonyms: differentiate, distinguish, draw a distinction, tell the difference, tell apart; perceive or constitute the difference in or between.
"bats can discriminate a difference in echo delay of between 69 and 98 millionths of a second"
Sense 2.
make an unjust or prejudicial distinction in the treatment of different categories of people or things, especially on the grounds of race, sex, or age.
"existing employment policies discriminate against women"
synonyms: be biased against, be prejudiced against...
The ability to discriminate is a good thing. The ability to judge differences is a good thing. Discrimination against people with bad character is a good thing, as MLK noted.
Since I get a bit pedantic about word usage I cringe when an unmodified "discriminate" is used as a pejorative. The synonym list leads to the better "be prejudiced against for reasons not relevant to the issue at hand." Discrimination: good. Racial discrimination: bad.
To prejudge -- be prejudiced -- is wrong whether the judgment is favorable or negative. To believe a white witness because they are white is prejudice. To believe a black witness because they are black is prejudice. Similarly with disbelieve. To discriminate between liars and those telling the truth as they know it (which still may be wrong as to facts) is wise.
It has taken me around three score and ten years to realize that police prejudice is just as awesomely awful as any other. Their prejudgment is that "everybody lies" to the police. Their prejudgment is that "civilians" are going to lie to them every time to try to avoid just punishment. Since "they" always lie it must be right to lie to them in turn. Which our courts have affirmed. It is okay to lie to suspects during police interrogation. The means justify the ends.
Grouping people into racial groups for any reason is discrimination (sense 1) by group. The NAACP is discriminatory. The KKK is discriminatory. Grouping individuals into theist vs. atheist is discrimination.
The thing about discrimination is that it is a human skill that is desirable (sense 1). Oftentimes grouping works as in: That gang with the colors and the guns is dangerous. (Especially if the color is blue, but that's my current prejudice. More due to post-judice, since I was raised to believe that the police are to be trusted.)
My proposed solution is to demilitarize police departments. Allow no one to be a policeman in a neighborhood in which they do not live. They must know (prejudge) the population as individuals before they are called in. Jurors should not be excluded for knowing the defendant. In fact, that is a good thing. It was the original idea of a jury of peers. Peers know each other and can use their prior knowledge of the defendant and witnesses to make sensible discrimination between truth-as-they-know-it and lies.