"Don't talk to police" doesn't include legally required things like identification. What you don't do is volunteer more than you're legally required to provide.

This sounds obvious but a lot of people don’t understand this.