Yes, in the anime, confused pokemon sometimes attack their battle partners (doduo counts as the two heads), like when arbok got confused by swagger and hit victreebel. This wasn't translated from the games, because in the games, partners can hit each other deliberately (for whatever reason. I thought it would be funny if confusion did that, but it can't).You see, when Pokemon are confused, they don't know who to listen to, their parents, or their peers. Sometimes, they will take drugs and therefore hurt themselves in confusion.
Other than that smart alec comment, I'd say that Razor Leaf pretty much hits the mark. Although I believe in one anime episode, a confused Doduo had its two heads fighting each other.