If you pick two separate constants for the 1/x integral, the formula won't work in the complex plane. log(x)+C continues to work in the complex plane as long as it is the same (single) value of C over all branches.
For the second case, the paradox arises from the habit of leaving out the indefinite constants until the very end. Ordinarily, we work ahead without including the arbitrary constants which arise from each new integral, gumming them all up in the final +C we add at the very end. When the equation here finally reads 0=1, we have to remember that it should really read 0=1+C, where the single C is actually a combination of several arbitrary constants.
If you want to be super pedantic about the C, you must remember that it arises from up to three indefinite integrals from the derivation of integration by parts, which STRICTLY reads
int u dv = int d(uv) - int v du
tl;dr there's always a +C floating around at the end of your equations when you integrate by parts. But for the same function, it had better be the same +C.