If I had enough space to get into the crosswalk, I'd do so to hopefully nudge the Uber along where I can safely make a lane change on the actual street. If the Uber doesn't get nudged along and there's no other legal way to move... then I'm "stuck in traffic" quite literally.
It's not absolutely necessary to avoid traffic by breaking traffic laws.
In the DC metro area, lots of times traffic is created by exactly the same scenario. I don't feel bad about it; the root cause was the Uber driver or more traffic up ahead combined with the limitations of human response time.