Correct, doctors do triage according to need and available resources. When you imply that there is some category of care that doesn't deserve treatment (or is too "costly" to provide), you are triaging and choosing economic growth over healthcare. I think that it is a rational decision to make, although it is certainly not the one that has the most respect for human life.