I think it more often a case of not paying enough attention to realise they are going to be in the narrow bit, or even not noticing the cyclist until too late.
Absolutely bad driving in either of those cases, but not really a case of deliberately thinking "I'm going to choose to squeeze that cyclist".
"Not paying attention" is a conscious and, for a road user, an unacceptable choice: "careless" is the applicable adjective: escalating to dangerous depending on the circumstances. "Be in the narrow bit"! Drive on the "bit of the road" that vehicles coming the other way will be using, but not 'deliberately'?
"Not noticing the [other road user]" - give us a break! Are these people 'not noticing' a car in front of them "until too late"? What do you mean "too late"? Too late for what? Braking?
These are Precisely cases of
deliberately thinking 'if I have a problem (vehicle coming the other way for instance) I'm sure I can squeeze across a bit!'
The driver is deliberately overtaking, are they not? They 'deliberately'/carelessly leave themselves no option but to 'squeeze' the cyclist.
I had this with a coach on a lovely fast straight slightly downhill A road last month: rolling along in top gear at 40 odd kph this coach comes past, close then closer as the driver "pays enough attention" to spot that there was a truck coming the other way. But the squeezing wasn't deliberate, though, oh no: the driver didn't have any other option.
His mate in the (green) coach behind, same firm: Slacks of Matlock, kindly (and properly) gave me a wide berth a minute later.