In the eighteenth chapter there is a City, a literal city, called Babylon the Great.
The Woman and the City don't symbolize the same thing. What is said about the Woman doesn't apply to the city and what is said about the City doesn't apply to the woman.