I like to "show intent". If I am riding a particular way, I maintain that way, without changing or being to unpredictable.
I also try and ride like the cars expect bikes to.
They expect bikes to be faster than them and slightly more agressive in riding style. So I ride about 10km/h faster, and overtake aggressively. IfI wishy washed behind tehm, slowing down and speeding up, the get anxious and may do stupid things to try and get you to do what they expect you to do, like slowing down, or pulling over a bit where there is no space to etc.
I ride with intent (from A to B like you say) and try and telegraph this intent by looking where I want to go to change lanes.
I also kep physics in mind. I ride a VTR 1000 firestorm, so I KNOW I can accelerate faster than pretty much any car, but I know that most cars can brake harder than me.
I accelerate into gaps, knowing that at a particular moment things are like X, and it is not physically possible for them to change to Y if I have done things correctly. Then I can just focus on unexpected events.