You missed a few criteria:
- Cultural, political, racial grievances of police.
- Cultural, political, racial prejudices. That is, maybe no ill will per se toward a citizen who looks a certain way -- but assumed guilt by association.
- Personal ambition, to be pursued by making lots of arrests, on maximal charges.
- Fear. End of month approaching, and beat officer is behind on quota of citations/arrests. Punishment expected from chief or DA, if revenue from fines, or prestige from high-profile arrests are lacking.
So, it's the selection of offenders, rather than of offenses due to resource constraints, that makes selective punishment so ethically offensive.
If officers feel that they need to make their quota or even have an arrests/infraction quote then that's a clear failure of policy, if they feel that they can settled their own grievances by abusing their power it's again a failure of policy.
But, to the point: He drove the interviewer through the streets in Baltimore, and argued that it was close to impossible for any driver in Baltimore to simply drive down a street, without breaking some kind of law - or at the very least giving police probable cause for checking your vehicle.
edit: https://www.youtube.com/watch?v=4HyKlFUMBiA
Starting around 4.05
In this case it is not a law, not in spirit. Rather a tool for "law" enforcement to nail inconvenient people.