try to overtake him at the last point (AI speed varies depending on how far ahead/behind you are)
as for ramming, avoid touching it unless there is no other option.
if you still struggle to overtake him, try with a controller connected, the game should recognize it and it makes drifting infinitely easier, do keep in mind you won’t have a brake/reverse on the controller, but the keyboard still functions