Umm, didn’t Jesus shed a little light on this when he rebuked the Pharisees and so on for their exaggerated sense of moral superiority?
Wasn’t pulling the ox out of the ditch on the Sabbath a lesson in balancing practical realities with spiritual realities?
Of course man must choose the lesser of two evils if doing so stops, or potentially, stops the greater evil. Doing otherwise would be morally repugnant.
OK, then find me a place where Christ did so.