This Massachusetts city ranks highly for schools, diversity, commute and nightlife, but lower for cost of living and safety.