In Pittsburgh, a city of 305,000, the Mayor gets chosen by about 17,000 public union members in the Democrat primary.
The Democrat nominee always sails through unopposed as the GOP no longer even bothers to contest for the office.
About the same for Memphis. Some of the outer small cities of the county elect Republicans.