Should I transfer to UCLA?

Ehhh, depends on that UCLA student’s other pieces. A Cal State student with a good GPA (let’s say a 3.5), lots of research experience, a publication in an undergraduate journal and clarity in their goals and interests will be a lot more appealing to professors than a UCLA student with a 3.8 but little research experience and ambiguous interests and research goals. Personally if a GPA is a 3.5+ I don’t even look at it further or judge any differences.

All other things are almost never equal. Graduate admissions truly are holistic in this sense - it’s all about balance. Yes, they have one advantage in their undergrad department, but you may have other advantages they don’t have.