This.
I think a lot of it depends on the severity of the depression. Doing things you enjoy or getting exercise is probably very helpful in mild or moderate cases. But when it's bad enough, there is nothing you enjoy. Not sex. Not hobbies. Not being with people. Not work. Nothing. As for getting exercise, again in severe enough cases you may as well suggest to someone with two newly broken legs that they go for a quick stroll.
When it comes to the suggestion of talking to someone, it's tricky. I have unfortunately had many situations in which it's done more harm than good. Most people can't handle it. They don't know what to do, so they usually do nothing at all. The pressure creates a rift that damages the relationship, and you end up feeling more alone than you did before you said anything. There are exceptions, but I think you need to think very carefully about whom you choose to confide in and what you want to get out of it.