I'm curious why do you think Dogma woulkd make friends with mouse droids
Honestly it just boils down to my personal interpretation of Dogma's character and the way he perceives the world around him.
He's still fairly fresh off Kamino so he's got that newbie trooper attitude (coupled with the fear and anxiety that's made him cling on so tight to his role as a perfect soldier), most likely got promoted to sergeant for his test scores (and I'll bet someone as meticulous about his duties and conduct as Dogma, would have pretty high marks right off the bat), and he's also on the fringe of the spectrum (not enough to be appointed as a maintenance clone, but just enough that others notice his peculiarities and social ineptitude).
Dogma is not easy to get along with right away (not for lack of trying but hey, when you have a bit of an attitude problem and a hard time reading between the lines, it's completely normal to slam into a communication barrier of sorts).
He's rather assertive, highly opinionated, and definitely has that stubborn and unyielding spark that makes the 501st so unique (even if others immediately think he's an ill fit for this battalion in particular due to his stringent behavior). He's also an anxious mess that overthinks situations when he doesn't have all the information, which leads him to jump to conclusions and formulate a plan based exactly on those very conclusions (ex: Deciding that to minimize damages he and the rest of the 501st should follow Krell without question, even at great personal cost).
It's not that he's inflexible to change, it's just that it takes him longer to acclimate to those changes. And, unfortunately, Dogma was simply not used enough to being outside of Kamino's oppressive grasp, to be able to relax enough that he could begin to assimilate the idiosyncrasies of his new battalion and environment.
Combine to that the fact others didn't quite understand why Dogma clung so tightly to order, and that Tup (the only trooper who seemed to get Dogma on some level) was much easier to befriend, and you end up with a trooper who is socially isolated for reasons neither he nor others quite understand. Which brings us to why exactly I think Dogma would befriend and even find some kinship with Mouse Droids:
You're alone. Well, actually that's not quite right. You were actually raised among millions of brothers, all of which share your face and voice but never quite understood you on more than a superficial level.
You try to show them you care in your own way. Cling tight to your teachings and convictions (things that have kept you safe for the entirety of your very short childhood), in the hopes that maybe your prowess will help keep yourself and your brothers alive.
And yet you're alone. Your one friend and closest brother is pulled away from your side by your older brothers. None of which really cast more than a disdainful look towards you because you're a bit of a nuisance to them. You're alone and you don't know why. And neither do your brothers. But you find someone who comes close to understanding what this particular misery is like. They don't look like you and don't share a voice or language, but you taught yourself how to speak theirs anyway. You share a need for a sense of direction and order. You understand your place in the universe. And yeah, they're maintenance droids and you're a clone sergeant. But at least you're not alone anymore.
Something something, the eternal quest of the individual human being is to shatter his loneliness. And if Dogma can't find companionship with his vode, then at least he can find some solace in a demographic that could definitely use some more kindness and respect.