I don't think either of them know that Obito can undo Edo Tensei. Madara is solely focused on Hashirama, and just doesn't care about anything else. He thinks he is invincible in that form and is acting accordingly.
I suspect that if Obito were to kill Hashirama, Madara would snap, though.