Nah, let’s not go this far. Might be true for some AmazonBasics product categories, but I have a specific example where this is just not true.
Their AmazonBasics monitor arms are manufactured by Ergotron (aka one of the most reputable and best monitor arm brands out there). I have both AmazonBasics and Ergotron arms (purchased from their official website), and it is clear as day that they are nearly the exact same product.
I purchased the AmazonBasics arms back in 2016, and they still serve me great to this day, surviving 2 moves between west-east coast and many more local moves.
You can call this anecdata, but both AmazonBasics monitor arms and Ergotron ones have excellent reputation.
Mind you I buy a lot of both Amazon Basics as well as Aliexpress generic products. I'm not saying something is garbage for being in this category, sometimes there are quality products, as you note.
In other words being generic and being garbage aren't a perfect circle in a Venn diagram.