If Hamas surrendered and released the hostages, Israel would have no excuse to continue their offensive, and if they did, you would definitely get more sympathetic voices for them to be reigned in, and all this talk about them being genocidal monsters would have a lot more merit to it. They would not be supported anywhere, if they continued smashing Gaza into dust after their enemy had surrendered.
Only one way to find out, though. The ball is in Hamas' court, because Israel is not gonna stop until they are neutralized, one way or another. The winners don't do the retreating and surrendering.