Match cities (or towns) to the ceremonial county they belong in. City of Bristol and City of London are excluded for obvious reasons.
Aside from the caveats, towns are usually selected for either population or notability.
In the case that there are no cities within a county, towns are used.
Towns are also used to replace cities that are deemed too "obvious", e.g. Oxford in Oxfordshire..