Arguably, they'd be better off not launching rockets that are pretty much guaranteed to hit civllian targets, even if they replaced that particular tactic with nothing whatsoever. The rocket attacks do not harm the Israeli state, they do not weaken it's military nor will more rockets force the IDF to withdraw.What do you see as the other tactics they could have used?
Viewed realistically, the rockets are an expression of frustration and impotence, not resistance to imperialism.