Revealing the similarity between urban transportation networks and optimal transport-based infrastructures