Here's the decision the umpire needs to make: Did the batter attempt to hit the pitch or didn't she. That first judgment is the key and it should be the same judgment whether the pitch hit the batter or not.
If you judge that she did, then dead ball, strike.
If you judge that she didn't, then dead ball, award first base (assuming the ball is not in the strike zone, etc).