I would choose to live in same city you work in. Commuting between them is for the birds. You rely on trains which when I lived there, ( a while ago I must admit) were notoriously unreliable but the excuses made it all worth while.
Delayed because (the best 10) :-
1 Fog in Sea Area Fortes
2 Leaves on line
3 Points frozen
4 Rain Forecast.
5 Lady had chained herself to seat & someone had stolen the bolt cutters
6 Battery was flat & were waiting for AA to jump start it
7 Snow on line
8 Driver had missed his bus to work
9 Rails buckled in heat (now that is an obvious lie)
10 Strike.
People are people everywhere & you will soon make friends in either. In my experience I made most friends at work (both sexes) , sport, Rugby Union, (male) & the QM at Glasgow uni (female)
I have never lived in Edinburgh but lived for more than 7 years in Glasgow. I found Glasgow people friendly but a bit introspective & insular on average. The surroundings however are magic.
Good skiing at Glencoe bout 2 hours drive north also at Aviemore but that is too far for one day and a bit exxy. Neither compare to Sun Valley