OK, so what’s the difference between Jerusalem’s Old City walls and the City of David?
Modern Jerusalem is huge compared to even Ottoman Jerusalem. Current population is about one million. The City of David is within current Jerusalem boundaries, but is outside the Old City.
https://www.jewishvirtuallibrary.org/map-of-jerusalem-municipal-boundaries