I agree that absence of pain and impairment are far more important than the length of our life. However, in the real world we do not have many choices. I reached age 87 and am male. The average life expectancy of American males is 75. I have also had bad pain and impairment from arthritis and some doctor abuse. I've learned to acclimate to the pain and also take Tylenol and Gabapentin to reduce it.
I feel I must accept whatever happens and just use choices available in the State of Connecticut in the US. Here they do not allow euthanasia but they do allow a Living Will and Advanced Directive. They allow one to refuse all treatment including nutrition and hydration and die but it takes about 3 weeks to end one's life using that method. I believe that John McCain and Barbara Bush used that method of ending their lives when their suffering became unbearable.
In the meantime I MUST accept whatever happens and make the best of it.