I agree, but what you're saying is not how the world see it. Many things that make humans exists are not necessary or makes life difficult now anyway. Like phobias, vomiting while travelling by car, allergies etc.
Homework isn't a great example, but you can substitute anything that causes you suffering. For me, a lot of it is about my weight. I went through more suffering than most people can imagine to lose more than half of my bodyweight, and I was pretty happy with the result... until I started letting myself do the things I'd had to give up to get there: eating out with friends (or even attending any event with food), not doing intense workouts more than 3 days a week, having the occasional snack, eating something other than protein bars every meal, etc. My weight started increasing, naturally, and I realized: I never get to stop going through all that suffering if I want to maintain my weight. Ever. Ever. And without being able to maintain that weight I instead get to feel like a fat piece of shit for the rest of my life instead. Given those two options, the idea of just ending my life here and now doesn't seem so bad.
Life is constant struggle for most humans (not talking about privileged here). In the end we all die horribly going through all that trauma, so peaceful suicide like hypoxia may be a solution to stop the suffering.
That’s as much a solution to everyday problems as nuking the entire planet and the human race out of a existence is a solution to, say, Covid or hunger.