When it comes to cigarette smoking, I would disagree - smoking is an addiction, a medical condition in itself. But yes, what goes on a death certificate has subjective elements to it, and for decades smoking was never mentioned.
In the unfortunate case of a suicide, this verdict would be decided at a Coroner's inquest, and the possibility of a bereavement contributing to this would be discussed.