Using GAP, I knew that groups $G=\langle x,y;x^4,x^2y^2,xyxy^{-1}\rangle$ and $H=\langle x,y;x^4,y^4,xyxy^{-1}\rangle$ are different. But I want to prove it.
I tried to do something using Tietze transformations but could not get success. Please suggest me a proof.
Hint: If the groups were isomorphic, then their abelianisations would be isomorphic as well. That is, $G\cong H$ implies $G/[G,G]\cong H/[H,H]$. Check that $H/[H,H]$ has an element of order $4$, while $G/[G,G]$ does not. (Just add the relation $xy = yx$ to each presentation to compute the abelianisation.)