When normal people talk about a city, they're talking about an urban area under the jurisdiction of a mayor and city council. that's exactly what "greater london" is, so when people talk about a city called London it's safe to assume they mean the 32 boroughs.
"the city of london" is just a confusingly named area inside a city called "London", it's not a city.