The test of Rawls' "Veil of Ignorance" is a pretty good way of cutting through the details and getting to what matters: if you had to be reborn as someone in any country (or, had to choose between two, if we wanted to e.g. rank them), and you couldn't control anything about the circumstances (race, social status, money, intelligence level, disabled or not, et c.) but were leaving it up to a die roll based on the demographics of the place—which would you choose? The ones you're more-inclined to choose are the better ones.
https://en.wikipedia.org/wiki/Original_position
And yeah, stuff like ensuring the worst-likely-case for a resident isn't that bad, and that you get a significant helping hand to improve your lot, helps a ton to make a country more appealing, in this sort of thought experiment. Far, far more than e.g. making sure the few very-best-off really run away with the prize (which improves the appeal of such a place basically not at all).