There's an Italian proverb that "one can never have a friend if one must have one without faults". Obviously, the degree of the faults matters, but your implication that friendship is a tacit endorsement of all the complexities of a person is extreme.
Edit: I feel this also applies to politicians. Sometimes I just dislike all the candidates for a given election, but for different reasons. And I have to choose which of my principles I value the most. It's awful! But it's reality.