From the CNN article btw: "The soldier said that he and his comrades refused to carry on with the practice after two days and confronted their senior commander about it. Their commander, who first told them not to “think about international law,” saying that their own lives were “more important,” ultimately relented, releasing the two Palestinians, the soldier said. "
This goes to show you to what degree Israeli soldiers do consider the international law and these sort of moral questions. They would rather risk their own lives. But yes, over a long war of this kind the threshold is going to become lower. It's the Hamas choice to keep fighting the way it does (booby trap every civilians building e.g.).
Now find me the Hamas "soldier" who refused to carry out orders to murder civilians or refused to hold civilian hostages and got their commander to free them. Let's see where's the moral equivalence.