Put simply, most popular moral frameworks people follow seem full of contradictions like this. And yet, it seems like any attempt to force a different moral framework on people would be a tyrannical force of misery. Any resolution a computer could offer to the contradiction above would make a lot of people deeply unhappy, which is in and of itself a moral problem.
People are emotionally driven, and I'm not sure there exists any logical set of rules that could define a morality people are happy with.