I'd highly suggest putting a trigger warning on posts like these in the future.you're still very young; we've all been there. the teenage years are terrible for most, hormones are all over and it's no help when depression surfaces. there's no such thing as a perfect person/life, everyone has flaws and there's more people that deal w/ these things than you'll ever know.
May I ask why is the masturbation making you miserable? i'm not seeing the connection.
It's not always the case of necessities being the source of happiness. think about it, there's celebrities out there that have mental disorders. it's not about what you don't have, it's about what you do have and making the most of it. as I said, you're still very young, just entering your teens, I've been dealing with depression since I was 12-13 yrs old and I'm almost meeting the demise of my teenage years, they go by faster than you think.
I won't tell you the cliche "it gets better, you just have to hang on a little longer" - but more that if you want things to improve, you need to find the motivation. discover your worth and purpose. you need to allow yourself to make things better; ending things completely declines any room for improvement and that's not what you want whether you believe it or not.
you're not a weak human, just posting on here for support provides evidence that you are very strong and capable. < also that you want to improve, otherwise you wouldn't be reaching out. don't give up just yet. there's so much more to life that you're yet to discover.
have you told anyone IRL about these difficulties you're facing? it's absolutely vital that you reach out to someone, untreated psychological problems tend to worsen without the support that's needed, though it's known that depression can improve overtime w/ appropriate treatment.
you're special to many people and I care. we care.
(appearance isn't all that important, it's all about personality and what you have to offer as a person. just because you don't find yourself attractive personally, doesn't mean nobody else will/does! I don't think I'm ugly, but not pretty, and you know what? many people disagree and find me beautiful. I'm sure there's many many people that could say the same about you!)