I believe the rule states that the batter must attempt yp avoid being hit by the ball.
to avoid
Rule 6.08 (b)(2) Says a batter is not entitled to first base if “The batter makes no attempt to avoid being touched by the ball” ... and, in that case, the umpire is to call the pitch as he sees it ... ball or strike.