Yes, a few people will die. More than a few. But I would bet anything that even in the short-term, and especially in the long-term, far fewer will die than if there were human drivers in those cars.
“Greater good” has been the excuse for some astonishingly bad ideas.