Why did Israel fail in this war?

They haven’t been able to rescue any hostages or eliminate Hamas. I thought Israel would do it in two months, especially against a weak force like Hamas, but two years have passed and they haven’t rescued a single hostage. What kind of failure is this? Israeli hostages have been in Hamas’ hands for two years.
The entire Israeli people hate the Netanyahu government. In two weeks, Netanyahu will be holding a wedding for his son. Many Israelis are against him celebrating while the hostages still haven’t been rescued, and they say they will try to ruin the wedding. The Netanyahu government is a complete failure. They will definitely lose in next year’s elections.

Why did Israel fail in this war?
Post Opinion