If we look at the equation \begin{align} z = \sqrt{ 8 - 6 i }, \end{align} we will find the solutions \begin{align} z_1 = -3+i \end{align} \begin{align} z_2 = 3 - i \end{align}
How can they be both correct if we can substitute \begin{align} \sqrt{ 8 - 6 i } = -3+i \end{align} \begin{align} \sqrt{ 8 - 6 i } = 3-i \end{align} and if \begin{align} \sqrt{ 8 - 6 i } = \sqrt{ 8 - 6 i } \end{align} then \begin{align} 3-i = -3+i \end{align} and that is of course false. I can't work out where I'm going wrong.
It isn't right to write $\sqrt{8-6i}=3-i$ (the same for the other solution). When you ask, $\sqrt{z}=?$ you mean to say " what thing multiplied by itself gives $z$". It just so happens that this question will not yield an answer that is a single number, but the "thing" is the elements present in the set comprised of two numbers. So what is meant as the solution for this problem is $$z=\sqrt{8-6i} \implies z=\pm(3-i)$$ Some problems even have an infinite number of solutions (even in the real domain), such as trigonometric equations. For example, $\sin{x}=0 $ has an infinite number of solutions on the number line, $x=k\pi$, $k\in \mathbb{Z}$, but it isn't true that they're all the same just because their output through the function "$\sin{x}$" is the same number.
Moreover you can see that no contradiction arises, because $(\pm(3-i))^2=8-6i$ (which doesn't mean $3-i=-3+i$.