My father had cancer in his late 60s. He wasn't expected to live. He did live about 2 more decades. But following his surgery, he spent considerable time in ICU.
At the same time, another elderly patient spent the last two weeks of their life there in ICU. They repeatedly coded and had massive intervention. Doctors routinely did things like drain a gallon of fluid from the lungs, restart their heart, etc.
My mother was pretty disgusted. She felt the family knew this woman was never going home again and these torturous treatments were not extending life. They were merely dragging out her death horrifically because the relatives were not yet ready to accept it.
In many cases, this is the better answer:
...they tell us that attempting resuscitative efforts that are likely to be futile is not consistent with their values. In these situations, rather than asking for intubation and chest compressions, parents just want to hold their child and find meaning in those final moments of contact.