Before someone tries to make the claim, no, the hospital staff couldn't have taken the babies with them. These were premature babies in oxygen-saturated powered incubators, which could not be moved.
Possibly if a fully set up ambulance was available for each baby, it could be done, but the IDF has been bombing ambulances too and there aren't that many available anyways.
Did the IDF ever even give any evidence that the ambulance convoy they bombed did have one with Hamas members? Also, Hamas members that were using it as secret transport and not wounded members that were just hospital patients at that point?
Who knows anymore? I don't believe a single thing I read and it seems pointless to try to make it make sense. This war will end when Israel decides it ends, and no one will be happy with the result.