You are trying to show the ideal $N$ is a principal ideal.
Let $g \in N$ have minimal degree.
The standard proof shows $N=(g)$, i.e., $N$ is the ideal generated by $g$.
If you choose $h \in N$ with $\deg(h)>\deg(g)$, you can form the principal ideal $(h)$, but it won't contain $g$, since any nonzero multiple of $h$ will have degree at least equal to $\deg(h)$.
Hence $N \ne (h)$.
The reason $g$ works is that when you use the division algorithm, the remainder, if nonzero, would be an element of $N$ with degree less than $\deg(g)$, which is impossible, since $\deg(g)$ is minimal (in $N$).
For the same reason $h$ fails, since when you use the division algorithm, the remainder, if nonzero, is an element of $N$ with degree less than $\deg(h)$, but $N$ has such elements (e.g., $g$), so there's no contradiction.