Background
Let $X$ be a simply-connected smooth 4-manifold which contains a smoothly embedded torus $T$ with trivial normal bundle (in other words, $T^2\times D^2\subset X$). Let $K$ be a knot in $S^3$, and let $\nu(K)$ be a tubular neighbourhood of $K$. Note that $\partial(T^2\times D^2)=T^2\times S^1=\partial([S^3-\nu(K)]\times S^1)$.
Fintushel and Stern define the knot surgery of $X$ to be the manifold $$X_K=(X-T^2\times D^2)\cup_{\varphi}([S^3-\nu(K)]\times S^1),$$ where $\varphi$ is "any map that preserves the homology class $[pt\times \partial D^2]$" (or as it is often equivalently described, so that the meridian $pt\times\partial D^2$ of the torus coincides with the longitude of $K$). Because $[S^3-\nu(K)]\times S^1$ has the same homology as a tubular neighborhood of T in X, and because the gluing preserves $[pt \times \partial D^2]$, the homology and intersection form of $X_K$ will agree with that of $X$ (the intersection form being a homeomorphism invariant of smooth simply-connected 4-manifolds). If it is also assumed that $X - T^2\times D^2$ is simply-connected, then $\pi_1(X_K) = 1$; so $X_K$ will be homeomorphic to $X$.
My Question
Is it obvious (or can at least be easily 'detected') what a "bad" choice of map would yield here? That is, you perform the gluing with a map which doesn't preserve that homology class --- can we determine how the result would differ from the "correct" type of map. For example, maybe the resulting space now has a singularity of some kind, or maybe the homeomorphism type is no longer the same as $X$, etc.
On some level I guess this is also asking 'how prolific are the maps that satisfy the homology condition' or 'how restrictive is the property on $\varphi$'?