People are consistently arrested and/or charged for resisting arrest for not identifying themselves in states that do not have “stop and ID” laws.
Even if you know to the letter what your state law requires, the police often don’t. If you take the arrest and sit in jail for 2-12 hours, you can fight it later in court. Somehow, this is a luxury for most people in the US.
"You were rude to me earlier, so I don't want to talk to you" may get you beaten up but won't get you in further legal trouble.
If it comes up at trial, you simply explain that the officer was rude to you, so you didn't want to talk to them, which caused them to be even more rude to you, which confirmed your decision to not talk to them.
Even if you know to the letter what your state law requires, the police often don’t. If you take the arrest and sit in jail for 2-12 hours, you can fight it later in court. Somehow, this is a luxury for most people in the US.