People are complicated, anyone saying otherwise is also selling you propaganda.
Hamas in this case (and I do mean Hamas not Palestinians in general) were explicitly genocidal, mellowed a bit, and are currently back using explicitly genocidal goals.
Hamas were just fine with targeting civilians, have been for ages. Hamas are also weak, which is the biggest difference between them and the IDF. That power disparity makes it easy and obviously necessary to condemn the big strong force that's damaged or destroyed approximately all buildings in Gaza, and killed 2-14% of the population depending on whose estimate you follow. Some governments (e.g. Germany) do still find they need to say "well Hamas started it!", but overwhelmingly the international consensus is "I don't care who started it, we need to stop it".