It's hard to say.
If you want to be a scholar,
It is more important to be a good major;
If it's just to find a good job,
It is more important to be a good university.
As long as you try,
There will be gains.