For how to attack a city, see "Urban Operations", the U.S. Army/USMC doctrinal publication.[1]
The two documents view different kinds of war. The USMA pub describes historic WWII city defenses where the defenders held out against armor for long periods, at the cost of high casualties and destroying the city. That is, Stalingrad. The US doctrinal pub describes US-style modern wars of taking over a city without too much collateral damage, followed by "stability operations". That is, Baghdad.
[1] https://armypubs.army.mil/epubs/DR_pubs/DR_a/pdf/web/ARN6452...