With OpenStreetMap, you’re in control. Turning the data into tiles can be done any way you like.
With pgRouting, you are not limited to roads but any network data can be used to find shortest path.