The thought process is that hammas is the governing body of Gaza and is responsible for its civilians. It would be in his best interest and its civilians to just return the hostages. Otherwise how would you put pressure on hammas to give back the hostages?
What should be done in your opinion for hammas to return the hostages safely and alive?