Electric cars have long had the ability to win many, many races against comparable gasoline-powered vehicles thanks to the instantaneous torque provided by their motors.
With this being said, there have been cases where internal combustion engine vehicles won races against EVs, particularly because battery-powered cars are typically heavier than their gas-burning counterparts, which is a problem around twisty circuits.