It is clear that not every nonsingular square matrix $A$ can be factored as $A = LU$. For example, $A=\begin{bmatrix}1 & 0 &0\\0 & 0 & 2 \\0 & 1 & -1 \end{bmatrix}$ can not be factored. i.e.
$$\begin{bmatrix}1 & 0 &0\\0 & 0 & 2 \\0 & 1 & -1 \end{bmatrix}=\begin{bmatrix}1&0&0\\l_{21}&1&0\\l_{31}&l_{32}&1\end{bmatrix}\begin{bmatrix}u_{11}&u_{12}&u_{13}\\0&u_{22}&u_{23}\\0&0&u_{33}\end{bmatrix}$$ then by considering operations of first row of U with first column of L, and second row of U with second column of L:
$u_{22}=0,u_{23}=2, l_32.0=1?$. This implies $LU$ factorization doesn't exist.
However if it exists, it is unique. My confusion is the following: If $A = LU$ is unique then A is square nonsingular. Is it True? If so, how can we prove/disprove it? Thanks.