Everyone's different. In my case, medication almost entirely eliminates the anxiety that's been a constant background presence, slow-burn torture, for most of my life. They also stabilize my mood. If the meds were to suddenly stop having any other positive effect, and kept the negative and neutral side effects, the anxiety reduction and mood stabilization alone would make them worth their weight in gold for me.
I stopped when I caught myself in a deep dive about the different types of flour in Germany.
It also affected my mood in really unpleasant ways, both for me and people around me. And it gave me a productivity boost at work at the expense of my life past 4PM.
Nowadays I just have a coffee before work.