The USB-C cable supplied with my MacBook does not function as a data cable, charging only.
Just got a fourth (shorter, different from MacBooks) one with my new iPad, it has data too, which I just used yesterday to restore the encrypted local backup from my previous iPad and perform a new local backup. I bet the cable shipped with these new iPhones is the same as with the USB-C iPad ones.
I do have an Apple Thunderbolt cable which supports charging (of course), but it was a separate purchase. The Thunderbolt cable looks similar but is a bit thicker, and has the Thunderbolt logo printed on the connectors at each end.
USB A-C cables are entirely separate, there is no CC line, only a fixed always-on Vcc pin at 5V.