Ok, I am seeing an example and a counterexample.
f={(1,1),(2,2)} and g={(1,1),(2,2),(3,2)}. Then f is one-to-one, g is not, and g°f={(1,1),(2,2)} is. Right? This works because the domain of g is not restricted to the image of f.
Also, f={(1,1),(2,2),(3,2)} and g={(1,1),(2,2)}. Then f...