But Israel has other factors making it difficult to be consistent, too. Specifically, variable international pressure, and inconsistent support from the US.
The heart of the problem, which makes a policy difficult to agree on, is that on the one hand Israel ought to defend itself vigorously enough that zero innocent Israelis are killed by violent thugs. And on the other, Israel is under massive pressure not to do that, and not even the US will support Israel in defending its citizens enough to keep all of them alive.