For example, you are required to provide identification when operating a vehicle at a traffic stop. No exceptions. Don’t get hung up on the reason for the stop, it doesn’t matter. Additionally, police can articulate in virtually any situation that they fear for officer safety, which is reason enough in many states to order you out of the vehicle. At this point they have a foundation to frisk you for a weapon.
Resisting at any point of this is very risky.
Understanding when and where an officer doesn’t have the legal authority to do the above gets very nuanced. But generally I encourage Americans to learn the rights they have when operating a car seeing as their lives revolve around driving.