When doing multi-class races in Freeplay that are long enough for an AI driver to lap the player when it finishes the race it does what I can assume is a cooldown lap it follows the race line ignoring all other cars on the track and just plows through them including the player.
When an AI car completes a race it should go into ghost mode.