still, unless your name is shuckle, the z-moves are powerful enough to inflict serious damage on you, and since there's no way to completely block damage from a z-move aside from immunities and/or disguise, you can only lessen the damage unless you manage to predict the z-move and switch in to a pokemon which meets the aforementioned contitions.