\(D=x^2+y^2+z^2-2xy+2zx-2yz+y^2+2z^2+2yz-2\left(x-y+z\right)-4y-6z+19\)
\(=\left(x-y+z\right)^2-2\left(x-y+z\right)+1+\left(y^2+z^2+2yz-4y-4z+4\right)+z^2-2z+1+13\)
\(=\left(x-y+z-1\right)^2+\left(y+z-2\right)^2+\left(z-1\right)^2+13\ge13\)
\(D_{min}=13\) khi \(\left\{{}\begin{matrix}x-y+z=1\\y+z=2\\z=1\end{matrix}\right.\) \(\Rightarrow x=y=z=1\)