Yup. If only it did/they could! My wife's uncle passed away last year, after a severe frontal ischaemic stroke during dialysis.
Having watched my Dad go, suffering from liver failure and two strokes during it, it was absolutely ludicrous that the palliative care team were so utterly obsessed with not killing him with the palliative care, when he was going to be dead in afew days, at most, anyway. I understand it, I do, they take the oath to do no harm, but he had already been waiting 24 hours for them to give him that care, the doses the ward could give him didn't really do much to help his suffering at all. So to have them turn up then spend another two hours planning, consulting with other doctors, checking things... it was one of the most frustrating experiences of my life. I was utterly useless to help, to do much of anything.
Even on that care he didn't really seem truly comfortable until the last hour and he fell into unconsciousness. It was quick from there.
In extreme situations like that where the person is absolutely going to die, suffering horribly within a short window, I don't understand why euthanasia isn't a thing here.