Doorways: go over the frame, not under the door, and it is not close.
Under a door the cable gets stood on every time somebody walks through, and a door bottom is a shear point — it does not crush the cable so much as work it back and forth until the conductors inside fatigue. That failure is horrible to diagnose because it is intermittent long before it is dead.
Over the frame the cable is out of everyone's way and the architrave usually gives you a natural shadow line to hide it in. Run up the side of the frame, across the top, down the other side. It sounds like more work and it is about ten extra minutes.
If you genuinely cannot go over, there is flat under-carpet cable designed for exactly this, but it is a different product and you want it by design rather than by squashing a round one.