There have been quite a few web articles about the risk of using 3rd party USB cables. Here's one discussing an Amazon cable which melted:
https://apple.news/AeR58Rtb_TqCZ7_FAPqdPnQ
Here's a warning about hacking potential (which doesn't apply here):
https://apple.news/AbeYFAzPDSx6wV_mI2d75AA
An excellent video explaining why Apple's USB-C cable is so expensive. In this hard to view shot you see how Apple has added length to a lead in order to make sure that signals get to the right place at the right time.

and look how complex the cable actually is:

compare it with this one:

so you are generally getting a much better cable if you buy from Apple and are wiling to pay the price. Otherwise ....
https://apple.news/AeR58Rtb_TqCZ7_FAPqdPnQ
Here's a warning about hacking potential (which doesn't apply here):
https://apple.news/AbeYFAzPDSx6wV_mI2d75AA
An excellent video explaining why Apple's USB-C cable is so expensive. In this hard to view shot you see how Apple has added length to a lead in order to make sure that signals get to the right place at the right time.

and look how complex the cable actually is:

compare it with this one:

so you are generally getting a much better cable if you buy from Apple and are wiling to pay the price. Otherwise ....