This sounds ridiculous. The car's job should always be to protect the occupant of the vehicle. Can you imagine what would happen to a car company if it was known that the car willfully choose to kill the customer if it meant that multiple other lives would be saved?
Another scenario, imagine you are driving on a freeway but a couple people decide to hop onto the freeway and cross it on foot. Would you rather just run them over or ram your own car and kill yourself just so that 2 people aren't harmed?