MOSUL DAM, Iraq — The two bodies lay festering in the midday sun on Tuesday, some of the only remnants of the Sunni militant force that until Monday night controlled the strategically important Mosul Dam.

Around them was the evidence of not just a fierce battle but also a different sort of fight: buildings reduced to rubble; cars churned into twisted metal; mammoth craters gouged from the road.