AI for racing games

How do i implement some basic ai for racing games which can find the route to the destination sometimes make mistakes and crash into walls and/or into the player, etc.

One of the easiest racing AI is steering + path follow https://www.youtube.com/watch?v=FVyUVJra3KI.

This one is also good: https://www.youtube.com/watch?v=eqDls3L1vrU