Let $n \in \mathbb{N}$, let $\{ e_1, \ldots, e_n \}$ be an orthonormal set in an inner product space $X$, let $x \in X$, let $y(x) \colon= \sum_{j=1}^n \langle x, e_j \rangle e_j$, and let $z \colon= \sum_{j=1}^n \gamma_j e_j$, where $\gamma_1, \ldots, \gamma_n$ are any scalars. Then how to show that $$\Vert x-y(x) \Vert \leq \Vert x-z \Vert,$$ where $\Vert \cdot \Vert$ is the norm induced by the inner product $\langle \cdot \rangle$?
My effort:
\begin{align} \Vert x-z \Vert^2 - \Vert x-y(x) \Vert^2 &= \langle x-z, \ x-z \rangle - \langle x-y(x), \ x-y(x) \rangle \\ &= - 2 \Re \langle x, z \rangle + \Vert z \Vert^2 + 2 \Re \langle x, y(x) \rangle - \Vert y(x) \Vert^2 \\ &= - 2 \Re \sum_{j=1}^n \langle x, e_j \rangle \overline{\gamma_j} + \sum_{j=1}^n \vert \gamma_j \vert^2 + 2 \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 - \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 \\ &= - 2 \Re \sum_{j=1}^n \langle x, e_j \rangle \overline{\gamma_j} + \sum_{j=1}^n \vert \gamma_j \vert^2 + \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 \\ &\geq - 2 \left\vert \sum_{j=1}^n \langle x, e_j \rangle \overline{\gamma_j} \right\vert + \sum_{j=1}^n \vert \gamma_j \vert^2 + \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 \\ &\geq - 2 \sum_{j=1}^n \left\vert \langle x, e_j \rangle \overline{\gamma_j} \right\vert + \sum_{j=1}^n \vert \gamma_j \vert^2 + \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 \\ &\geq - 2 \sqrt{ \sum_{j=1}^n \left\vert \langle x, e_j \rangle \right\vert^2} \cdot \sqrt{\sum_{j=1}^n \left\vert \overline{\gamma_j} \right\vert^2} + \sum_{j=1}^n \vert \gamma_j \vert^2 + \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 \\ &= - 2 \sqrt{ \sum_{j=1}^n \left\vert \langle x, e_j \rangle \right\vert^2} \cdot \sqrt{\sum_{j=1}^n \left\vert \gamma_j \right\vert^2} + \sum_{j=1}^n \vert \gamma_j \vert^2 + \sum_{j=1}^n \vert \langle x, e_j \rangle \vert^2 \\ &= \left(\sqrt{ \sum_{j=1}^n \left\vert \langle x, e_j \rangle \right\vert^2} - \sqrt{\sum_{j=1}^n \left\vert \gamma_j \right\vert^2} \right)^2 \\ &\geq 0. \end{align}
Is this calculation correct? If not, then where does the problem lie?