I had a few similar situations while riding a motorcycle through Peru.
https://andrew-max.github.io/adventure/2017/03/24/huamachuco...
Google maps would reroute me around perfectly good highways because some goat trail somewhere was technically a shorter path although the reality was that they were 10x longer because of how difficult the terrain would be and if you were to brake down on any of those roads, you would immediately be in a survival situation, it was incredibly remote.
It finally happened to me although luckily I was able to find an isolated farm but it's not hard to imagine if things went a little bit differently it could have turned into a life or death situation