Sounds counter intuitive, but despite doing fast laps when on the circuit alone, even the best AI racers have difficulty surviving a race distance in close pack racing without crashing.
Roborace, the autonomous racing league in development has barely managed to put two cars on track and doing an overtake safely. A lot of money and state of the art research has gone into this.
I expect that AI will be able to beat humans on the (simulated) race track in a decade or two but we aren't there yet.