I absolutely think that Hamas should release the hostages, immediately and unconditionally, but at the same time we have to be realistic that it is probably not going to happen without a ceasefire, and the non-civilian hostages are probably not going to be released without a permanent ceasefire and a prisoner swap.
Regardless of whether Hamas wants continued war or not (which I kind of doubt as most Hamas members have civilian family members victims of the ongoing genocide) we have to realize that Israel is the main actor here and is committing a genocide. Israel, with a backing of the USA, has consistently refused ceasefires in the past, even when Hamas has shown in the past that they do release hostages during a ceasefire.
I think the January ceasefire negotiations are very telling of how things usually go. Israel wants to continue the genocide and Hamas wants to keep the hostages, there is some settlements and concessions made, weeks go by, Hamas attends negotiations, Israel boycotts them, US state department blames Hamas for not wanting the deal, Hamas declares they want the deal, Netanyahu keeps insisting the war will continue regardless of deal, UN says they should make the deal, the deal falls apart, the US state department blames Hamas, the UN votes at the Security Council for a ceasefire resolution, the US veto’s it.
In an environment like this, there is no way Hamas will release the hostages. Israel has to be the one that takes the first step, regardless of how unfair it may seem to you.