This has always been the issue with the muslims, instead of uniting, working hard to develop ourselves, we have people who always called for holy wars against the muslim states such as Syria, Libya, Yemen, Iraq etc, the keyboard warriors made the muslims even weaker than before. A destroyed Syria, Yemen, Mali is not beneficial to us.
Regarding Hamas, we must understand they are living in prison, they are targeted everyday, someone is shot or arrested everyday so we cannot truly understand the situation they are in, on top the GCC arab nations are sleeping in the same bed as Israel.
For Hamas they are already suffering, if given chance they will target the dajjali zionist state, they don't care about the consequences because they suffer everyday.
Yes true their operation didn't really benefit them, most likely Israel will occupy Gaza and annex it, it will benefit Israel more but keep in mind Israel will somehow find ways to annex West Bank too and then part of Jordan. They will continue to expand their state.
The muslims states should unite, then send a force in Gaza, West Bank, South Lebanon so no war takes place, then work towards a solution. Shockingly hardly any Muslims calls for this.