This is when a person tries to justify the way we treat an action or behaviour, by equating it to something "just as bad" as it, even if each action or behaviour is bad for completely different reasons.
Hope this definition makes sense. If you need clarification, feel free to ask :)