The solution for the two atomic basis is given by
\begin{align*} \omega^{2}=\gamma\left(\frac{1}{M_{1}}+\frac{1}{M_{2}}\right) \pm \gamma\left[\left(\frac{1}{M_{1}}+\frac{1}{M_{2}}\right)^{2}-\frac{4}{M_{1} M_{2}} \sin ^{2} \frac{k b}{2}\right]^{1 / 2} \end{align*}
but for $M_1 = M_2$ we have
\begin{align*} \omega^{2}=\gamma\frac{2}{M} \pm \gamma\left[\left(\frac{2}{M}\right)^{2}-\frac{4}{M^2} \sin ^{2} \frac{k b}{2}\right]^{1 / 2} = \gamma\frac{2}{M} \pm \frac{2\gamma}{M}\cos \Big\vert \frac{k b}{2} \Big\vert \end{align*} which is only for the negative solution the same as
\begin{align*} \omega(k) = 2 \sqrt{\frac{\gamma}{M}}\left|\sin \frac{k a}{2}\right| \end{align*} which is the solution of the one atomic chain and b=a/2. In every book I read they just state that it's the same and from a physical point of view it should, but mathematically I don't see a reason throwing away the $1+\cos(\dots)$ solution.