It all depends and I'd have to be in the moment to figure it out.
If it really looks close and traffic isn't moving quickly behind me-take the lane and get past, then back over towards the right.
If I am at a moment were my legs are starting to give-late in the ride or after getting up an incline-I might gear down and slow, move a bit and just let the cars get ahead.
I tend to ride in the right tire track, which seems to work well for our roads. On the wider roads it keeps me just clear of parked car doors and gives enough room for a car to pass. On the narrower roads it forces most of the drivers over-and if I start getting buzzed, I'll slowly inch over. Don't know how that would affect things in this situation.