Pikuach nefesh normally describes a straightforward priority, saving life over observing a specific law, but Jewish law also confronts the harder case of two lives competing for a single scarce means of survival, and its classic treatment is a standard reference point in contemporary bioethical debate over triage.
The Talmud records a dispute over two men travelling in the desert, one holding a flask of water sufficient to keep only one alive until they reach civilization. Ben Petura held that both should drink and share the water even though both will then die, reasoning it is better for both to die than for one to witness the other's death, since no one may determine that another's blood is redder than his own. Rabbi Akiva disagreed and ruled that the flask's owner should drink it and survive, deriving this from "that your brother may live with you" (Leviticus 25:36), read as establishing that one's own life takes textually grounded precedence, "your life comes first" (Bava Metzia 62a). Akiva's ruling became the accepted position, though understood narrowly, as governing the owner's own choice rather than licensing a third party to seize a resource from one person to give to another.
The case has been invoked directly in modern discussions of triage under scarcity, including ventilator allocation during the COVID-19 pandemic, where rabbinic authorities have distinguished the original case, a person deciding what to do with a resource already in his possession, from institutional triage, where a hospital must decide among multiple patients none of whom already possesses it, a distinction that has led most contemporary poskim to treat medical urgency and likelihood of survival, rather than "your life comes first," as the relevant framework.