This is not a hypothetical question at all. Denmark is certainly asking this question, with the understanding that currently the US can tap anything they want in our communications infrastructure, and buying 5G from Huawei would instead give that power to the Chinese.
I think it is fortunate that Danish political consensus is converging toward avoiding Huawei infrastructure. American politicians might be as bad as Chinese leaders, but the former are sometimes held accountable, however meekly.