It's not obvious to me why simply mapping the generators to generators should define a homomorphism.
Just to be sure I'm on the same page as you. Let ##a,b ## generate G, ##a',b'## generate H. Let ##\phi : G \rightarrow H## be defined by ##\phi(a)=a'## and ##\phi(b)##.
From just this, It's not clear how one would show that ##\phi## defines a homomorphism. Of course I believe it does, and of course saying what a map does to the generators should be enough to describe what it does to the group.
And I agree, showing that two groups have presentations that look the same upto naming generators should be enough to claim isomorphic.. I'm just unclear on how to show this rigorously.