As discussed in detail in What forms does the Moore-Penrose inverse take under systems with full rank, full column rank, and full row rank?, for a system of equations
$$Ax=b,$$
if $A$ is full-rank in rows but rank-deficient in columns (the system is under constrained), the Moore-Penrose inverse of $A$ finds the minimum-norm solution for system of equations, i.e.
$$x=A^{+}b$$
is the solution to the original equation for which $\|{x}\|_{2}$ is smallest.
Conversely, if $A$ is full-rank in columns but rank-deficient in rows (the system is over constrained), the Moore-Penrose inverse of $A$ finds the least-squared-error approximate solution of the system of equations, i.e.,
$$x=A^{+}b$$
is the $x$ for which $\|Ax-b\|_{2}$ is smallest.
What happens if $A$ is rank-deficient in both rows and columns (e.g., there are more columns than rows, but fewer independent columns than rows)? Do the norm minimizations end up acting in sequence, so that
$$x=A^{+}b$$
minimizes $\|x\|_{2}$ over all solutions that minimize $\|Ax-b\|_{2}$, or is there some interaction between the norm minimizations so that they cannot be taken in sequence, and instead $A^{+}b$ minimizes some combined norm on the input and output spaces?