In my area they’ll do that anyways no matter what we do, they just hate cyclists for being in the way at all. So it’s safer to take the lane when they’re flying past you with barely any room to pass.
I’d rather take the safer option that makes them angry, than the polite unsafe option and then they’re still aggressive anyways.
Oh no disagreement there, a proper bike lane is safest.