I'd say it depends on the heuristic of the path planning algorithm, eg. if road surface is taken into account and the road it chose is asphalt while the other one is dirt then that path makes sense.
What application are you using to find this path? OSM in itself doesn't do path planning if I'm not wrong, it's just the map's structured data