The greatest value of $|z|$ if $\Big|z+\frac{1}{z}\Big|=3$ where $z\in\mathbb{C}$ 
$\bigg|z+\dfrac{1}{z}\bigg|=3$ then the greatest value of $|z|$ is ___________

My Attempt
$$
\bigg|z+\frac{1}{z}\bigg|=\bigg|\dfrac{z^2+1}{z}\bigg|=\frac{|z^2+1|}{|z|}=3\\
\bigg|z+\frac{1}{z}\bigg|=3\leq|z|+\frac{1}{|z|}\implies |z|^2-3|z|+1\ge0\\
|z|=\frac{3\pm\sqrt{5}}{2}\implies\color{red}{|z|\in(-\infty,\frac{3-\sqrt{5}}{2}]\cup[\frac{3+\sqrt{5}}{2},+\infty)}
$$
$$
\bigg|z+\frac{1}{z}\bigg|=3\geq\bigg||z|-\frac{1}{|z|}\bigg|\\
|z|^2-3|z|-1\leq0\text{ or }|z|^2+3|z|-1\geq0\\
|z|=\frac{3\pm\sqrt{13}}{2}\text{ or }|z|=\frac{-3\pm\sqrt{13}}{2}\\
\color{red}{|z|\in[\frac{3-\sqrt{13}}{2},\frac{3+\sqrt{13}}{2}]}\text{ or }\color{red}{|z|\in(-\infty,\frac{-3-\sqrt{13}}{2}]\cup[\frac{-3+\sqrt{13}}{2},+\infty)}
$$
The solution given in my reference is $\dfrac{3+\sqrt{13}}{2}$, why am I not able to find it in my attempt ?
Note: A similar question has been asked before, If $∣z+\frac{1}{z}∣=a$ then find the minimum and maximum value of $|z|$, but it does not have any answer which address why we choose a specific version of the triangle inequality.

(First, assume that $|z|>1$; our range for $|z|$ will be mirrored with its reciprocal, but the maximum we're looking for is definitely greater than $1$.)
Your inequality $\left|z+\frac1z\right|\le |z|+\left|\frac1z\right|$ is true, but it's only half the picture; we get equality when $z$ and $\frac1z$ are positive real multiples of each other, which makes $|z|$ as small as possible. Solving the resulting quadratic inequality $|z|^2-3|z|+1 \ge 0$, we get $|z|\ge\frac{3+\sqrt{5}}{2}$ or $|z|\le \frac{3-\sqrt{5}}{2}$.
We should also look at an inequality in the other direction: $\left|z+\frac1z\right|\ge |z|-\left|\frac1z\right|$. This leads to the quadratic inequality $|z|^2-3|z|-1\le 0$, with solutions $\frac{3-\sqrt{13}}{2}\le z\le \frac{3+\sqrt{13}}{2}$.
Combine the two inequalities and our restriction $|z|>1$, and we get the range
$$\frac{3+\sqrt{5}}{2} \le |z|\le \frac{3+\sqrt{13}}{2}$$
with equality achieved at pure real values $\pm\frac{3+\sqrt{5}}{2}$ for the lower bound and pure imaginary values $\pm i\frac{3+\sqrt{13}}{2}$ for the upper bound.
So, then, your work - you solved the quadratic wrong, and got the numbers from the other quadratic. (Edit note - fixed now) Then your reference had to go mix things up with an answer that's just plain wrong. No wonder you're confused here.

...why we choose a specific version of the triangle inequality.

The real answer? We choose all of them. They all apply, restricting different aspects of things. Some of those restrictions won't matter for the specific problem we want to solve, but they're all there.
(In response to the red text added)
There's a reason I added the assumption that $|z|>1$; your solution to the inequality $3\ge \left||z|-\frac1{|z|}\right|$ mixes two cases together into a useless mush. Combine the two parts of what you wrote, and it's no restriction on $|z|$ at all - all positive values are in at least one of those ranges.
If $|z|\ge 1$, then $|z|\ge\frac1{|z|}$ and we can write $\left||z|-\frac1{|z|}\right|=|z|-\frac1{|z|}$. This leads to the inequality $|z|^2-3|z|-1\le 0$ and solutions $\frac{3-\sqrt{13}}{2}\le z\le \frac{3+\sqrt{13}}{2}$. But then, we also assumed $|z|\ge 1$, so that's really $1\le z\le \frac{3+\sqrt{13}}{2}$.
If $|z|\le 1$, then $|z|\le\frac1{|z|}$ and we can write $\left||z|-\frac1{|z|}\right|=\frac1{|z|}-|z|$. This leads to the inequality $|z|^2+3|z|-1\ge 0$, with solutions $|z|\le\frac{-3-\sqrt{13}}{2}$ or $|z|\ge \frac{-3+\sqrt{13}}{2}$. The first of those? We can't have $|z|$ negative. Bye. The second? Combine with the case's condition for $\frac{\sqrt{13}-3}{2}\le |z|\le 1$.
So then, the full implication of that inequality is
$$\frac{2}{3+\sqrt{13}}=\frac{\sqrt{13}-3}{2}\le |z|\le\frac{3+\sqrt{13}}{2}$$
Combine with the other half, and we get two ranges for $z$:
$$\frac{2}{3+\sqrt{13}}=\frac{\sqrt{13}-3}{2}\le |z|\le \frac{3-\sqrt{5}}{2}=\frac{2}{3+\sqrt{5}}\quad\text{or}\quad\frac{3+\sqrt{5}}{2}\le |z|\le \frac{3+\sqrt{13}}{2}$$
