As above. Although I've avoided a roadside pull for many years, my approach was and remains, polite compliant. I escaped a marginal DUI charge many years ago this way.
When asked questions, reply politelym without being daft! E.g. if asked 'Do you know why I've stopped you?' replying 'Yes, I was doing 90 mph in this 40 zone' is a bit daft, 'Dunno you tell me!' is similarly daft, whereas 'I do not officer, please advise me' is a good start.
I don't carry my driving licence and it's old-school paper so when asked to producewill usually get told I've committed an offence (true)but I'll wait for the policeman to add that the law allows a 5-day perriod to produce it at a police office of my choice, rather than ranting about not needing to carry it and the ills of Government ID carying by stealth etc etc.
They are allowed to verify you are who you claim to be and I've done this via credit cards and/or an insurance document in the glove box.
Although it must occasionally happen that folk are pulled over in error, I assume they've 'got me' and act accordingly. Ranting and trying for some arcane escape waffle rarely ends well!