Depression and anxiety can result in a rather wide range of cognitive symptoms. For many people, that's what eventually convinces them to seriously pursue treatment. Yes, there are risks that side effects of SSRI's can affect cognition, but there are many alternatives. Ultimately you're trying to optimize your wellness, whatever that may look like.