As inflation continues and migratory patterns favor low-cost havens, here’s how Boston compares to the nation’s most and least affordable metros.