They had several weeks notice and warning to move civilians out of harms way.
They chose not to.
It’s all on them.
There are different “theys”
Hamas didn’t allow and didn’t do this as they want more victims to show to the world’s TV cameras
About the doctors, let’s give them the benefit of doubt and assume that they had no say and no ability to get people out.