You can’t, so you just have to accept that in some senses, reality is imperfect, in shades of gray, and sometimes irreconcilable with itself. You will not find a neat proof showing how to make everyone live in peace, harmony and happiness. But as humans we can try to do the best we can, which inevitably will be a long series of compromises.