Inaccessible sidewalks in Brazil

Wouldn’t that cause a router app to punish for both the bad smoothness and the potholes, i.e. it would incorrectly punish twice for the same issue?