Self love is tough. I once came from your position as well. Absolutely hated myself. But changing yourself will take time, and it started from building your habits with the small things.
You can't just wake up tomorrow and love yourself. You've got to be aware enough to catch yourself from hating yourself next time something goes wrong, and telling yourself that it's ok. You'll grow from this experience and become a better person.
Next time you miss the bus and you start to believe that you missed the bus because you're a dumbass, remember that activity of showing up late, doesn't define you as a person. It's just one event.
What clicked for me was Brene Brown's toxic shame versus guilt.
I was stunned when she said "Toxic shame is when you believe you are a bad person because you did something wrong. Guilt is when you feel shame for something you did"
This was for a game changer for me.
As an example, If I scored low on a test, Toxic Shame would be saying: I am a dumbass and moron for not being able to score well. Guilt would be I should've studied better.
Toxic Shame is bad. Guilt is good. It keeps us from streaking the neighborhood or mooning the cops.
This helps you take responsibilities for your actions, and not dig yourself into a deeper hole of self-hatred.
As far as comparing yourself to other people is concerned, I learned that people who are doing better than me, paved the path for me and made me realize that it's possible. Whereas before, I'd spend my free time angry and pissed off at that person for killing it. Which is destructive to myself.
Hope this helps