I always hated the MagSafe connectors because I almost always used my laptop with the power connected but not on a table or other hard surface (eg a bed), and it would invariably fall off constantly.
I had this problem too on my 2015 MPB, when Apple went from Magsafe 1 to Magsafe 2, which was (vertically) thinner. The Magsafe 2 easily disconnected when there was even a little vertical torque.
I bought a Snuglet, a thin metal shell that inserts into the Magsafe recess on the MBP. It reduces vertical and horizontal clearance between the Magsafe connector halves. In my case, this has completely eliminated unwanted disconnects.
Disclaimer: no connection with Snuglet or NewerTech, just have found the product useful as advertised.
USB-C is not making it better, my t480s cable is too heavy and you can see it tugging on the connector and it's not sitting straight but tilted. I already managed to break one USB-C socket on my 2016 macbook pro, I can see it breaking soon on the thinkpad if I don't caress it, which means not letting the cable hang and making sure not to bump it with my knee.