UCSB or UCD?

I am an international student and my original intended major was Actuarial Science.
If I choose Davis, the pro is that my friend would also go there so I don’t have to worry about any housing issues and having to be alone.
I care about having a social life and experiencing the college experience, but I also care in terms of ranking and academically.
If you were in my position which one would you pick
Santa Barbara: Actuarial Science or Davis: Mathematical Analytics and Operations Research?