Two USB-C cables can look identical but behave very differently.
1. Charging power: basic cables carry up to 60W. Cables for laptops and fast phones may carry 100W or more and have a small chip inside.
2. Data speed: many cheap cables are charge only or USB 2.0 speed. Transferring big files or flashing a phone needs a good data cable.
3. Video: only some cables carry video to a monitor.
4. Quality: thin, cheap cables get hot, charge slowly and break near the plug.
Tips:
1. Keep one known good, well made cable on the bench for testing.
2. For flashing and backups, use a short, good data cable.
3. Label your cables by what they do best.
If a phone isn't detected by a computer, try another cable before suspecting the phone.