Yeah, the Grogu moment was a lot more significant in context. The creed says don't remove your Mandalorian armor helmet in front of others. An appropriated Imperial Remnant helmet that wasn't even his to begin with doesn't count the same way, and like Ithekro said he needed to in order to access the computer terminal and learn the location of Moff Gideon's ship. One was necessity and allowed him to exercise a loophole without violating the code. The other was to express his love for Grogu and say Goodbye.
I don't think that level of technicality enters into it, personally. Din doesn't strike me as the lawyerly, "well, actually, in the fine print" kind of guy.
The big difference is that last week he really had no choice. He was desperate, backed into a corner, and forced to choose between his beliefs and someone he loved. He chose to bend his faith, and took his helmet off.
This week, however, was a completely voluntary and avoidable situation. He didn't have to take his helmet off, there was absolutely no pressing need, no goal to be achieved, no sense of desperation or urgency. He just... wanted to. To have that moment with Grogu, to connect with another in such a meaningful way. Just as it's an entirely different level of intimacy, a room full of strangers versus the child you've risked so much for, it's an entirely different calculus of faith.
Last season, he was willing to die, FROM AN OBVIOUSLY COMPLETELY TREATABLE WOUND, rather than violate his creed. (Seriously, he's back up and in fighting form within minutes after IG-11 treats him with bacta spray. It was the equivalent of an athlete getting his or her knee or ankle taped and getting back out there.)
I find this evolution fascinating, and very Star Wars. So much of Star Wars is about family, the search for it or the defense of it or the longing for it. Din Djarin had his faith. Maybe that was all he really had. No friends worth the name, just a wanderer without a purpose. But now he has something else, something that matters more to him than even that faith he was willing to die for. That's why I've come to really enjoy this character, and I can't wait to see what the PTB have in store for him moving forward.