The experiment was to put a mouse alone in a cage with two water sources. One had sugar water that would keep the mouse alive, the other had cocaine and no nutritional benefit. The mouse would keep drinking the cocaine and starve to death.
Then someone tried the same experiment but they gave the mouse companions. With other mice around they would all eat.
I struggled with depression for years and the most beneficial change I made was to put effort into developing close friendships. Having friends and family that you can talk to and share things with is immeasurably valuable.
Also, listening to other's problems helps develop your own empathetic response and it's a short step to extending that empathy to yourself. Be kind to yourself and avoid negative self-talk. You deserve better. Life is hard enough as it is.