Once I had to troubleshoot and iPhone with a party Lighting port. The cable wouldn’t stay plugged in.I had the exact OPPOSITE problem! I was a huge Lightning fan, but after 3 failed Lightning connectors on iPhones, I'm happy to see it retired. Even my current iPhone 13 Pro won't make a Lightning connection for charging, just months after getting it, and i'm still paying off the darn thing! Only charge via Qi now.
Lightning was a failure in the end.
I haven't had a single problem with any of my USB-C devices.
I fixed the problem with a needle, removing all the lint that accumulated inside the port. After that, the problem was gone and the user was very happy.
The way the Lightning connector was built is like no other. Always a good connection, it doesn’t lose its grip.
Of course, if you connect low quality chinese cables expect to have issues.