Philippa Foot is most known for her invention of the Trolley Problem thought experiment in the 1960s. A lesser known variation of hers is as follows:
Suppose that a judge is faced with rioters demanding that a culprit be found for a certain crime. The rioters are threatening to take bloody revenge on a particular section of the community. The real culprit being unknown, the judge sees himself as able to prevent the bloodshed from the riots only by framing some innocent person and having them executed.
These are the only two options: execute an innocent person for a crime they did not commit, or let people riot in the streets knowing that people will die. If you were the judge, what would you do?
It also drives home the point to anyone in a position of authority and responsibility: you will be asked to make compromises. You will be asked to make sacrifices. You must be willing to accept your own responsibility in that decision making, because you put yourself in position to do so.
Sometimes, when faced with only negative choices, you have to be willing to accept the stain of the least evil of them.
Kind of like every American president is an unindicted war criminal. We can imagine that most, if not all, of them didn’t go into it to commit evil acts, but they had to be ready to do so if the other options were worse based on whatever calculus they were able to do at the time.