I have been trying to implement a 2D $N$-body physics simulator and am currently using newton's law of gravitation to calculate the magnitude of the force a pair of particles experiences. $$F=\frac{GM_1M_2}{r^2}. \tag{1}$$
However, as I have found in this thread, it seems more accurate to alter the inverse square law to simply $1/r$ instead, which makes sense to me since we are working in 2 dimensions instead of 3. Something along the lines of $$F=\frac{GM_1M_2}{r}. \tag{2}$$
However, every other 2D implementation of the $N$-body problem uses the former equation, and I am wondering whether one is more correct than the other? Which one is more suitable for my case?