The hostages have been Netanyahu's sacrificial pawns.
He's rejected several peace arrangements that could have seen them out. Then he could have gone back on his word and pursued the razing of Gaza.
But that wouldn't have looked as good and it wouldn't have offered the convenient storyline you're offering for him.