In that case, there are three possible scenarios:
-- If the braking force is less than the force delivered by the engine,
then the car will continue to accelerate, and the brakes will eventually
overheat and erupt in flame.
-- If the braking force is exactly equal to the force delivered by the engine,
then the car will continue moving at a constant speed, and the brakes will
eventually overheat and erupt in flame.
-- If the braking force is greater than the force delivered by the engine,
then the car will slow down and eventually stop. If it stops soon enough,
then the absorption of kinetic energy by the brakes will end before the
brakes overheat and erupt in flame. Even if the engine is still delivering
force, the brakes can be kept locked in order to keep the car stopped ...
They do not absorb and dissipate any energy when the car is motionless.