Worse still is having to merge in/out of traffic to avoid parked vehicles. In the state of Oregon, you are legally entitled to the same rights as any other vehicle on the road, but that also means you are legally obligated to move over when possible so faster vehicles can pass. In practice, this means swerving into the lane of car traffic to get around cars parked on the curb, and then moving back into the "bike lane", repeatedly. It's frightening, even if drivers here tend to be very considerate to pedestrians.
There is probably an exception for safety — you don’t have to merge into the rightmost lane if it is not safe. (You’re describing a scenario where it isn’t safe.) I know WA cycling law has such an exception, but I don’t know about OR specifically.