Anakin is the Empires hero on Mustafar. (Obi-wan is the Rebels hero..?)

I thought that too at first, but how could they fight each other in the Clone Wars Era? Obi-Wan is for the Republic, and so is Anakin. Their allegiances would be more defined in the Galactic Civil War era, even though they look WAY different