Everyone I know with a Pixel 1 or 2 has a loose connection to their USB-C cable, even nice aftermarket Anker ones. It feels as fragile as the USB 3 external hard drive connector type.
My MacBook Pro has the same issue, constant plugging and unplugging whenever it moves while it's on my lap. it doesn't matter which port or cable I use, it's very fragile.
it's hard to use a laptop as a laptop when it has to remain still to be plugged in.