Damn bro, are you literally me? I'm a senior in uni, just turned 27, just don't think about anyone else and definitely don't contrast their path to yours or you'll get depressed. In some way, in some capacity, your journey has given you "something" that will come in handy later. Its cope but its also a necessary mind-stat, or else you won't be able to progress and will continue down the hole of "I'm not good enough" or "I've wasted so much time". Just create delusions for yourself, or goals, or think critically on your past, or whatever you want to label it. Analyze and strive towards the new things you want out of your mind and body with all your heart.
Philosophical thoughts aside, here's some action tips:
>make friends with people in your class, regardless of their age. learn from them and teach them things you've learned (this happens implicitly).
>be open minded and appear malleable
>study everyday, even if its a few minutes and eliminate the bad habits you've formed up to this point. truly, fight and destroy negative habits that bring you no joy or make you feel like trash
>stop saying what you do is "shit". you just haven't prepared for the context you're in. you're learning, adapting and you will succeed
Best of luck anon. You'll make it.