depends on the law, the court, and the lawyer.
drunk driving, you might be right, but loitering, maybe not. if you can point out examples of the same crime being reported and no response being made, you could argue discrimination.
jaywalking is a crime where I live, like it is in NYC and LA, but...