Seems to me that the underground dwelling would be safer as the forces would be transferred to the sides, each floor being separate from the others above and below.
Yes, there would be damages to the rooms, from furniture, dishes on shelves, etc, being tossed about, but no collapses or pancaking...............
The entire crust has fault lines right through it, so, no.