40 years. On and off various medications, that did not work, for 16 of them. Sometimes there are other issues, such as with myself (hormonal). Benzos help with the panic and anxiety, and I always suggest those. Trying to get to a doctor to get back on a low dose of Elavil. Elavil has its own travails. Nothing is perfect. Its not so great for depression, but its very good for anxiety.
Depression isn't just chemical, and it isn't just cognitive/behavioural. Its a combination of many things. Which comes first? The chicken or the egg? There are many theories out there about it. Meds help the symptoms, but they do not get rid of the underlying cause. Oft' times, depression begins as something situational (that example of the girl tending her mother is an excellent one), and turns into a monster in your mind. People do get things out of certain behaviours, and those behaviours are learned/taught. Situational depression is best met by handling the situation(s) that is(are) causing it. That's why the best treatments are a combination of short-term medications and cognitive/behavioural therapy.
I have horrible reactions to all SSRIs(and their cousins), so I have had to go with a) deal with the anxiety with meds, so I can b) deal with the cognitive and situational issues = Win. Sometimes, however, situational issues are much harder to deal with.
Another thing I learned, for myself, and I spread this around a lot, is: "I want to kill myself" really means, "I want something to change, and I just can't see my way around it right now." Its futility and being overwhelmed by situations and my own thoughts.
Anyhow, no idea if any of this is in any way helpful, but you're not alone in fighting this long term.