I think you are making the assumption that the capital city is the most diverse and open. This is not the case for Canada, Australia, and the USA just off the top my head. I wouldn’t say that the capitals are close minded, but they shouldn’t be the first option for easiest to integrate into by a foreigner.
I recently moved to the UAE, and Dubai is considered more foreigner friendly than the capital, Abu Dhabi.