Unfortunately the death penalty is currently not about killing the criminal, but a good-looking death. Basically it does not matter if the person suffers for an hour, as long as it is not visible.
From hanging, electrocution, to gassing (yes, US did that at one point) and lethal injections, the method was always slow and painful.
With the lethal injections one, most chemicals were banned for it, so they are poorly researched by laymans, not as functional and literally made so the person is paralyzed, while they still can feel everything and can painfully be dying for half an hour.
Interestingly enough, because of certain happenings, these methods are often poorly prepared by a layman after a quick google search and mostly made to look like a quick death, with the person often suffering even for half an hour. We already have a solution. It’s called a guillotine. After 4 seconds the person is all gone, but it’s a messy death for any onlookers, so it’s not used.
For anyone interested, here is a great video about how executions basically never changed in all but look: https://youtu.be/eirR4FHY2YY?si=9y_dbu8SBiDyPos-