And guess who's at fault when you're caught?
Edit: No, crossing double-lines to avoid obstructions isn't breaking the law. People in the Comma Discord bring up these weird edge cases that are outlined in law, too. No, you're never forced to break the law when driving.
You can downvote me all you want. You're wrong. The police would find you wrong, a traffic law court would find you wrong. People are animals and don't want to obey the law. Just obey the law. Drive the speed limit, keep right unless passing or turning left.