It's not just the softness of the material.... Sidewalks have lots of undulations and uneven angles every time you cross a driveway or a junction. Also gaps and cracks
Jogging 2km on a sidwalk is fine
Running at a serious speed over 10k on an uneven, hard surface like sidewalk is a high chance of injury