Sometimes it can refuse. It can refuse to let you put the shifter into park from drive without applying the brake petal. It can refuse to shift into a gear at an unsafe speed. It can refuse to speed up if your wheels lose traction. It can refuse to apply full brake potential if the brakes lock up. You, the human, are the one without agency in those situations.