All due respect, God was WILLING to have mercy IF 10 righteous people could be found.....
.....God destroyed Sodom and Gomorrah
However!
After God sent Jonah to Nineveh, a thriving and very wicked city....to warn them
God DID have mercy on Nineveh......because they turned from their wicked ways....repented even to wearing sackcloth and ashes
Many years later they forgot their allegiance to God.......and were destroyed
But my focus is on the fact that God was willing to spare Sodom , even Sodom, for the sake of ten righteous men.