In Tehillim 79 (1) we read how HKB”H sent his anger on wood and stone (and by implication less on the people of Israel):
A song of Asaph. O God! Nations have come into Your heritage, they have defiled Your Holy Temple, they have made Jerusalem into heaps.
Rabbi Yakov Haber's article quoting the medrash says that instead of destroying the Jewish people, Hashem poured out his wrath on sticks and stones. But pesukim 2 and 3 read:
They have given the corpses of Your servants as food to the birds of the heaven, the flesh of Your pious ones to the beasts of the earth.
They have spilt their blood like water around Jerusalem, and no one buries [them].
So I do not see much of a consolation.
The difficulty can be resolved by saying that if the anger had not been on wood and stone then many more of Yisroel would have died. But this seems facile.
Is there a better resolution of the problem?