They haven’t done everything they can. Israel is one of the most well informed countries in the world with an intelligence agency that is on the cutting edge of opsec. They know exactly where Hamas is. What they don’t HAVE to do is bomb hospitals, bomb schools, bomb refugee camps displacing hundreds of thousands if not into the millions of people.