Change their minds by continuing offensive operations until there is no more resistance of any kind.
See Germany and Japan.
You're right but I don't think Israel is going to do what it is going to take in Gaza. Bibi is one guy. But they will kick him out from power soon. Hamas survives to fight tomorrow.