It's probably the classic $$\int \sin 2x \;dx = \int 2\sin x\cos x \;dx$$
* Doing a $u=\sin x$ substitution "gives" $$\int 2u \;du = u^2 = \sin^2 x$$
* Alternatively, using $v = \cos x$ "gives" $$\int -2v \;dv = -v^2 = -\cos^2 x$$
Since the solutions must be equal, we have $$\sin^2 x = -\cos^2 x \quad\to\quad \sin^2 x + \cos^2 x = 0 \quad\to\quad 1 = 0$$
As you note, the fallacy here is the failure to include "+ _constant_ " to the indefinite integrals.
* * *
Note that there's also the substitution $w = 2x$, which "gives" $$\begin{align} \int \frac12 \; \sin w \; dw = -\frac12 \; \cos w = -\frac12\;\cos 2x &= -\frac12\;(2 \cos^2 x - 1 ) = -\cos^2 x + \frac12 \\\\[6pt] &= -\frac12\;(1 - 2 \sin^2 x) = \phantom{-}\sin^2 x - \frac12 \end{align}$$ that leads to the same kind of apparent contradiction when compared to the other integrals.