In the end, what’s the outcome?
People act like if they go to college A, they’ll be flipping burgers and if they go to college B hey can make a career.
That’s not how it works. People from “no name” schools manage kids that went to Harvard, etc.
So it’s likely your choices are both incredible - assuming you do the work.
Listen, you can be one to second guess everything in life.
I read several times on various posts what a parent above wrote about Cal Tech - not taught by Profs because they are researching, isolation, eating from Uber Eats.
That sounds lonely, stressful, and depressing.
You state you already had mental health challenges.
No college is easy…none.
But UCSD has a residential college system. There will be dining halls and team work and more.
In the end, you will be somewhere four years, day after day. All three will be stressful.
But, at least based on what was described above, one can cause someone to crack.
If you already know that’s been an issue in your past, why set yourself up for that.
You are not making a choice between a life in poverty and a life as a successful industry person. Both, all three, are going to get you there.
I’ve never heard anyone say UCSD, especially in STEM, lacks “prestige” - and prestige doesn’t bring success. Hard work brings success.
Good luck.