The biased use of enforcement discretion, such as that based on racial prejudice or corruption, is usually considered a legal abuse and a threat to the rule of law.
The unfair use of law enforcement discretion, like discrimination based on race or corruption, is typically viewed as a violation of the law and a danger to justice.