That is why "they" say to actually turn and walk the other direction. It is not like...give a big yank and turn quickly. It is simply as if you are in charge and decided to go a different direction.
The dog learns to pay attention to you, because you decide what will be happening next.
And you want to turn around before the leash goes tight.