That is not true on two fronts. First, doctors were not choosing who lives and who dies. They were deciding who would have the higher chance of survival if they were treated. There is no certainty that a) the selected treatment group would survive or b) the unselected would have survived but for the triage.
Secondly, that is exactly what triage is! People die, doctors are trained to decide of a group of people which are dying, who has the better chance of not dying.