Ignoring chemical imbalances, most depression stems from a loss of control in ones life. If depression is really just a side effect of having a self image and a sense of control over that future self image then the benefit is the ability to adapt. The problem may not even have a solution, it may just be a need to reconfigure the self image in accordance with reality.