Have used Pixel 5 and Pixel 7 Pro phones in the Atlas on a daily basis for nearly 3 years / 52+k miles. We use a generic cable from Amazon if we want to plug in but easiest option is to just toss it in the console and have it charge wirelessly and connect wirelessly to Android Auto. As usual, if you are having issues with a cable, first thing to check is to take a small staple (or similar small metal item) and dig out all the dust and pocket lint from the phone cable connector. This will allow the cable to seat fully in the phone. If that doesn't work, verify it is working with your factory supplied cable (from when you bought the phone) or check online reviews for a quality cable.
Even with this, remember, this is a VW infotainment system - it will not work flawlessly. You will end up restarting it from time to time, sometimes dealing with rotating icons that never settle if you are on a short drive. During long drives, not uncommon for AA or the infotainment system to disconnect or need to be restarted.