You really doubt that Hamas said this? The IDF can be bad, and still correct at the same time.
Hamas clearly do not care about civilian casualties or they wouldn’t be literally using them as human shields, storing their weapons in civilian locations and housing their militants in civilian buildings.