Given $a, b \in \mathbb{R}$ with $b > 0$, is the series
\begin{equation} \sum_{n = - \infty}^{\infty} (\sqrt{(a+n)^2+b^2} - |n| ) \end{equation}
convergent or divergent?
If we drop out the $n=0$ term and fold the remaining sum, the question can be equivalently asked for the series
\begin{equation} \sum_{n = 1}^{\infty} (\sqrt{(a+n)^2+b^2} + \sqrt{(a-n)^2+b^2} - 2n ). \end{equation}
Your two expressions are not equivalent. The sum is not uniformly convergent, so the order you sum the terms in can matter. The second has an explicit order of summing while the first does not and will cancel out the constant terms. Even the second one does not converge, however.
We have $\sqrt {(n+a)^2+b^2}-n \sim a+\frac {b^2}{2n}+o(n^{-1})$ as $n$ gets large, so $\sqrt {(n+a)^2+b^2}+\sqrt {(n-a)^2+b^2}-2n \sim\frac {b^2}{n}+o(n^{-1})$ and the sum diverges logarithmically