Yes, Hamas and its people woke up one morning and thought, "Hmm it's a bright and sunny day. Perfect for some completely random rockets to be fired at our FRIENDLY, TOTALLY NON-OPPRESSIVE neighbour." Even so, that is completely irrelevant. Even if a criminal came into your house and was firing randomly towards your neighbours, that does not warrant the killing of everyone inside the house. Would it be okay if the police warned you before sending a bazooka to completely obliterate your family along with the murderer?
Even so, in the bank robber analogy, Hamas is analogous to bank robbers and hostage takers. So they are perfectly analogous to the Israeli hypothesis of Hamas using human shields in any and all of its operation. Expanding upon that analogy, if the bank robbers would arbitrarily shoot outside the bank, killing bystanders once in a while completely randomly (by not even aiming for anyone in particular), would destroying and bombing the bank, killing the civilians inside, be a viable solution?
Because hamas is not robbing a bank, they are shooting rockets from their own rural area, your analogy sucks. why do you need an analogy? what is so complicated in this situation? force A who lives among people A fire at people B, Force B fires at force A killing people A too.
you may think IDF is shooting aimlessly and systematically and call "genocide", problem is its a thought, i have not seen any proof of aimlessly or systematically fiering. Moreover aimlessly anyhow is mostly disregarded easily as misfire, or targeting error - such as the 4 kids at beach.
Also you must remember that to cover their soldiers, which can be in threat during invasion into gaza, IDF is allowed to use fire which may hurt "non-involved" citizens. This is just how things work, no one here who lives in a democracy and has an army who has or would fight a force that fights and fires from its own civilian area would acted in any other way.
Not only that, but prior to the invasion, IDF was fiering only from planes, also claimed by many aimlessly, genocide people call, and then IDF go in with infantry, and have many casualties, and people call genocide again when shit goes even worse. I think to call genocide A) things should have been at least the other way around as in infantry left, then planes would just bomb aimlessly, because well if soldiers are dying to just withdraw and bomb'em no?
b) hamas to civilian ratio of dead should be over 150/600 or whatever the number is now, varied to who claims to know now.
this IS the picture of what is going on, people will now counter argue by looking at the bigger picture, adding in other levels of other times, and other conflicts, so be it.