More than a few pedestrians walk and use their phone, walk right out in the traffic, or other situations (some hilarious walking right into poles and getting laughed at on the internet.
I know in a few nations this may be a hard concept, but here in the US, it is absolutely NOT true that "pedestrians always have the right of way"... no no no