Typically the car passes the bike which is riding to the right. Then the car turns right directly in front of the bike. Forgetting it was there, even though they just swerved around it.
That's because the driver believes the cyclist is going much slower than they actually are, but this can be mitigated by taking the lane when approaching an intersection such that the driver of the faster vehicle will make the turn from the same lane the cyclist is in.
But there's another scenario where a cyclist is passing traffic on the right and then gets right-hooked by a vehicle making a right turn.
But there's another scenario where a cyclist is passing traffic on the right and then gets right-hooked by a vehicle making a right turn.