I watched my wife go through similar things. Her stomach stopped working, and even with groundbreaking surgery and one of the top 10 gastroenterologists in the world at her side, nothing could be done. She tried to get treatments that she thought might help, until one day her GP just down the road finally told her what no doctor had the guts to say out loud: "you're dying."
That was a punch in the guts. That was late November 2019. She'd just turned 45. She went on hospice care just 4 months later. Hospice care was the best medical care she'd ever received. Finally she was in less pain (but still a lot of pain- starving to death is the opposite of pleasant). Finally able to have one on one care with a nurse who genuinely cared about her.
She passed away at home in February 2021 at 46 year old. Nobody tried to violently resuscitate her. Nobody stuck tubes in bad places. Nobody caused her more suffering in order to prolong her suffering. The green paper on the wall said so. One of my own biggest fears was having our home invaded by EMT's and police, with EMT's shattering her frail body to try to save it. But that never happened.
So, doctors have it right. Die in peace the old fashioned way, if possible.