Larger cities would help more, as the root issues are education and specialization.
A city should be large enough to have multiple potential employers to minimize the risk of getting trapped in a bad job. If you are single, a smaller city can be viable if there is a concentration of businesses in your field. But that won't work for an educated couple, if they are in different fields.