They aren't the same style. Anakin used Form V, while Obi-Wan used Soresu. Basically Anakin used an incredibly offensive lightsaber form, while Obi-wan used an incredibly defensive light saber form. 

I always just justified this moment as each other trying to distract and feint. 