One can be guilty and one can also be the victim of selective prosecution.

The case here stunk of selective prosecution, but selective prosecution is not a legal defense except in the most extreme circumstances.

As we say in traffic court, if you are caught speeding, it’s not a defense that others were speeding too.