You are in a tough spot but is not the end of the world. Brace for the impact and keep in mind the things you like about existing. Suicide (IMO) is about having exhausted all other options and becoming completely uninsterested in survival. If you are young and still enjoy some things I would´nt consider ending my life for a medium size failure.
I think the real question here is how bad your depression is, because everything else is irrelevant once we are talking about anhedonia or crippling fatifgue.
Of course, I too have failed many times by now, and it feeds into my depression, it´s true. The shame due to bad decisions and losses makes you wonder if you were born to be humiliated and whether it shouldn´t be better to kill yourself and be done with it. I have no uplifting answer for this unfortunately, I´m trying to figure out it myself.