If a QB doesn't want to get hit, then step out well before the defender arrives. If you tight rope the sideline and then step out at the last second, there should be no penalty for lighting you up even if you are OB. A defender doesnt know if you will continue downfield or step out when he commits to making the hit.