It is not good to be partial to the wickedOne injustice is not balanced out by another. If Person A has been hurt by unjust treatment, I do not balance the scales by subjecting Person Z to injustice — even if Z shares some category (i.e. skin color) with the perpetrator of the injustice.
or to deprive the righteous of justice (Proverbs 18:5)
No, injustice is remedied by justice.
We really shouldn't need the Bible to tell us that. But there it is.