There is a world of a moral difference between Hamas deliberately killing babies on one hand, versus Israel doing its best to avoid civilian casualties but some civilians dying as collateral damage during war. If Hamas doesn't want its apartment complexes legitimately bombed by Israel under the civilized Law of War, then Hamas shouldn't store weapons in apartment complexes.