I have no right to force another person to live. Bodily autonomy is the first fundamental right we have, imo. Assuming your death does not directly lead to the death of another person, your right to die always trumps another person's dependence on you.
However, some decisions to commit suicide are more well thought out than others. The younger you are, the less confidence you should have in the assumption that the rest of your life will suck. You can have very good reasons based off of very shitty life circumstances, but, in the end, you're still having to predict a longer time span than an older person would.
I'm 25. Many people would consider that too young to be certain that premature death is the best answer to my problems. They might be correct, but I still have the right to decide my own fate.