In page-38 of Visual Differential Geometry by Tristan Needham, the following equation for the metric-curvature formula is introduced:
$$ \kappa= - \frac{1}{AB} \left[ \partial_v \left[ \frac{\partial_v A}{B} \right] + \partial_u \left[ \frac{\partial_v B}{A} \right] \right] \tag{1}$$
For a metric: $$ ds^2 = A^2 du^2 + B dv^2$$
For example, ne can show through (1) that the metric $ds^2 = dr^2 + r^2 d \theta^2$ and $ ds^2 = dx^2 + dy^2$ correspond to zero curvature i.e: a flat space.
My question is, if we have two metrics who agree whose curvature evaluated by (1) agrees everywhere, will shortest path between two points in the manifold also match?
For example, in the two examples I gave, we can verify that whatever coordinates we put on the cartesian grid, we find that straight line is shortest distance between points. But is this generally true that just by metric's curvature agreeing, the straight line/ geodesic looks same?
For a person who found this question by search, I would suggest reading this wikipedia article of a related topic known as Einstein's hole arguement.