Gazans could have surrendered and released the hostages before their cities were reduced to rubble. They learned the hard way.