A valid and fair point.
But Israel plays the long game with patience and skill, and in cases like this without much regard for world opinion. I would think that in this case they realize that the hostages taken may already be dead, or suffering, and have a high probability of never being set free.
The taking of hostages was based on the assumption that recovering the hostages would be high on the priority list for Israel. Given the magnitude of invasion, destruction, and deaths rescuing hostages will fall below the other priorities of preserving the nation of Israel and destroying Hamas to prevent this from happening in the future, near future anyway.
Israel will also be taking retribution against Iran, now that it is clear Iran significantly assisted in the operation.
I think, too, retribution is too light a word. Retaliation, is perhaps, too. I think we will see a response many-fold beyond what Israel has suffered. You can be sure they have plans well-refined of measured escalation designed to fit just about every particular situation. There will be immediate reaction, but you can be sure the Israeli response to this will echo through years.