It's not so close you can't swing your turret. Just that a shorter gun might not stick around the corner, be less to think about as you move along.How else are the infantry there? Did they walk?
In a situation so close you can’t traverse your turret? Some, but not as much as you might think.
The IFVs could be at the Zulu muster, not having the same organic protection.
A urban optimised tank could also provide uav control and a c2 capability for infantry. Ie a strong tx radio or rebro for local PRR.