And... humanity needs to have a serious discussion about the merits and risks of all of that before we rush to deploy AI.
You may, however, still choose to do it anyway, knowing full well that it's immoral.
If killing one innocent person will somehow magically save one million, that too is immoral. And I'd kill that one person to save the million regardless, accepting that it is an immoral act. It's a worthwhile thing to live with, to save so many. Obviously this is in the land of outlandish hypotheticals. Non-the-less, the morality is just the same if the ratio is 1 to 10, 1 to 100, or 1 to one million: intentionally killing - murdering - an innocent person is immoral in all circumstances.
https://www.google.co.uk/amp/s/amp.iflscience.com/editors-bl...
By being outraged at one cop's admission of a short cut to finding people who are due in court we are bringing the abomination of robots down on our heads.