Do I have something wrong when solving $y'+2y=6$?
Both solutions are the same, $k$ is a real number, you can write $3+(-k)e^{-2x}$.
They are identical. You have no reason to expect $k $ from one method to be exactly the same from the other method. If you include an initial condition, you'll get the same solution in both cases.