Most things in life aren’t black and white. Overly dualistic thinking isn’t true to reality. Life is full of nuance. A goal can be worth pursuing even if it doesn’t garner the highest success; there are worthwhile things in both flawed people and flawed philosophies.~ Brett McKay from, https://www.artofmanliness.com/character/the-11-cognitive-distortions-that-are-making-you-a-miserable-sob/
I’m not even sure how to classify this article for you. It’s short enough that you can just go glance at it. You’ll either shrug it off as simplistic (or possibly even offensive), or you’ll find the list of common cognitive mistakes useful. My pull-quote is indicative of the mistake of “splitting” thinking explained, not of the article overall. This mistake was—is still?—my biggest problem.
On the topics of depression and cognitive mistakes, from personal experience I recommend as useful Stoicism in general, and the more modern, (than the one McKay is referencing in the article above,) Cognitive Behavioral Therapy Made Simple. To be fair, David Burns, the author of the book McKay is summarizing, was instrumental in bringing Cognitive Behavioral Therapy into the mainstream.