No, it's not the same. Hamas doesn't have an air force or tanks. Israel could have stopped them very easily. The only reason Hamas "succeeded" in this attack was because of the intelligence failure; Israel got caught off guard.