Having military installations in residential areas is different than housing soldiers and civilians in the same buildings, using hospitals as bases for military operations and using medical transports remove weapons. It's not even a close comparison.