Trust me, after the pandemic, when the daily grind kicks in and your office life and daily commute drains every ounce of energy, you'll be happy to WFH.
I know. I guess it’s just choice paralysis.
Anecdotally I found meetup helped me out a lot. After a few weeks of awkward gatherings I finally found people I clicked pretty well with. Forcing yourself to go is hard though.
You'll make friends AND stay in shape.
You have a choice, you don't have to choose the suburban lifestyle.
I would say that it also helps a lot if you know at least 1-2 people who moved to that city just before you. You can plug into their social network and work together to expand it.
The other advice I have is find people who share your interests through sites like meetup.com. Lots of people who show up to those events will also have space on their dance cards. Get comfortable going out to shows, art exhibits, or whatever you’re into by yourself, and then if you hit it off with someone at a meetup event you’ll have something to talk about and something to invite a new freind to join you at.
The biggest factor in your decision should be ease of meeting new people, imo. Cities were already bad for this in the first place, but I view them as the "least worst" option. Try leverage your existing network if you know anybody where you're moving to, because they're going to be in the same position. Hacker meetups, game jams, industry conferences or other hobbies work really well too -- though you might want to avoid being in the tech bubble because I'm totally stuck inside it.
Once you've got a few friends, you can leverage their social network to meet new people and explore new hobbies and stuff.
WFH does mean you can more easily keep in touch with college friends. Me and a few buddies have a Discord server where we co-work and we also have something similar within my company (where it's easier to not worry about leaking secret stuff). This has been one of the few things that's kept me sane over the last year.
Edit: Happy to share more if you've got something specific in mind.
I emigrated from my home country around 4 years ago, and none of my friends are people I've worked with. I'm not against it, but at my old job my coworkers were mostly 10+ years older, married and had children, so they had their own thing going on.
There's lots of ways to make new friends outside of work, depending on what floats your boat. You can go to industry meetups, join a sports club, take up a hobby, go to live music gigs etc. But to be honest, making friends is just one of those things that happens organically, from random encounters multiplied by time. After university, it takes a bit longer to make friends, since people generally have a well established social circle and spend less time socialising due to work and other responsibilities. It took me a year or two to find my feet and "build a network" of friends.