A 68-year-old woman with advanced dementia is admitted with aspiration pneumonia and poor nutritional status. The team considers a percutaneous endoscopic gastrostomy (PEG) tube, but she lacks capacity to decide. There is no advance decision. According to GMC guidance, how should the decision be made?