Bertrand Russell said something like the following if I am not mistaken.
(I can't find the exact quote on the internet. But I am sure that he said something like it.)
"If you could demonstrate to me that the extermination of the Jews would increase the overall happiness of mankind, then I would consider it."
This was obviously a philosophical point of some kind.
You could obviously replace the word "Jews" with any group of people.
Try replacing the word "Jews" with a group that you as an individual identify yourself with and then see how you feel.