Since it is all an unrealistic assumption, let us suppose also that the time spent to turn the lights on is equal to zero; despite this, the car would arrive first, because the light from the headlights, before reaching the maximum speed, will have to start from zero and accelerate, even if it did so in billionths of a second.
[However I walk, so I don't care at all

]