## Is the diagram commutative

In the following diagram $$f,g$$ are isomorphisms and $$\pi, \tau$$ are canonical projections. Is the diagram then commutative ?


($$A, B$$ are groups) What if $$\pi$$ and $$\tau$$ are just surjective ?