Moto G and USB cables (charging & data)....some don't work?

I just purchased a Moto Z Play and had this same problem and finally came across your post and this has worked, thank you for this solution.