Civilians in the Gaza Strip do not really have a choice. The Gaza Strip is tiny by most geographical standards, roughly 9 km by 40 km[1]. And a very densely populated area. So even if the IDF tries to protect the civilian population ( and I think they do a comparatively good job), they will necessarily fail.
[1]https://en.wikipedia.org/wiki/Gaza_strip