Strategy
Equal race? Whose move it is decides the game
You need 3 steps. Your rival needs 3. Your move.
Best move
A step to c7.
Race before: you 3 steps, rival 3 (0). After: you 2, rival 3 (+1).
Tempo
In a race with equal steps, the player who moves first arrives first. Here that is you. Step to c7 and you need 2 while the rival still needs 3. Keep stepping and you reach row 9 one turn before they reach row 1.
Don't give the move away
A wall like f1h does make the rival's route longer (4 steps), but you stay on 3 and hand them the move. Now they can answer with a wall of their own, and the race starts again with walls flying.
How to count quickly
Count your steps, count theirs, then add one to the side that is not on the move. If you are still ahead or level after that, walk.

Takeaway
Equal steps and your move means you win the race. Walk, and keep your walls for their walls.
Practise this in Wall Duel. Ten bots from Pebble to Titan, ranked duels, and a post-game review that shows where your games turn. Free to play, as much as you want.