They will not do it, nor should they. Why?
Because companies will not decide to kill 12 year olds in favor of 6 year olds. The legal liability alone would be crushing - and no one I know is that immoral.
Because computers do not have the ability to make the sort of concrete decisions you imagine in the chaotic situation that is driving and human medicine.
Because developers will make their #1, #2, #3, #4 and #5 priorities avoiding ALL accidents.
Because too many people watch science fiction and think computers are like that.
Because the trolley problem has never happened in real life - and likely never will. And thus resources are better spent elsewhere.
Is that clear enough for you?