I once discussed that very thing with my BIL who was an Oncologist and had signed many, many death certs. over the years.
He said no doctor should ever put that as the cause of death since it's unverifiable. You put the actual cause such as pancreatic cancer, lung cancer, heart attack, liver failure or some other such terminal illness.....
The shit they put on death certs is super inaccurate. When my father passed in his sleep at age 80 (and he was a polio survivor who spent a year in an iron lung as a teen), the coroner put obesity and diabetes as cause of death instead of heart failure.
He was neither obese or had diabetes. He did have a beach ball belly which was a result of polio weakened muscles. There was no autopsy and the coroner talked to nobody in the family or the family doctor, just wrote down what he felt like.