What “rankings” are you talking about? graduate rankings? Because don’t apply to you (and if there are no/few grad students in Psychology at either UC, then you’re in luck because you’ll have better chances of doing research). The professors are just as good as at UCSD etc., their specialty may be different but essentially for a major the basics of which are rather standard such as Psychology you shouldn’t worry, and I’d be surprised if you’re interested in none of their specialty areas …