You cannot separate the two just to suit an argument.
Yes, Hamas are terrorists and murderers. They hide behind civilians and civilian infrastructure.
They are a constant threat to Israel's security.
You might think that the murder and kidnapping of Israelis deserved a response that killed a similar amount of Palestinians. Maybe you think it deserved no response.
Netanyahu had other ideas. The hornets nest was poked once too often and in the worst way.
Had it occurred to you that the whole situation might be different if HAMAS stopped trying to kill Jews and agreed to a mixed population in Gaza? Could the mutual hatred be suspended to save lives?
In this country, we are expected to accept all kinds across our borders, many of whom are undesirable.