German wind turbines largely don't come from China, but even if they did, the difference is that if China stopped selling us solar panels, batteries and wind turbines, the existing infrastructure would continue to function for decades to come while we work out a domestic replacement supply chain.
This is in stark contrast to fossil fuels, where it's infeasible to stockpile more than a few months of usage, and if suppliers turn off the tap, you're at their mercy almost instantly.
If China stopped supplying solar panels or batteries, it'd spark a frenzy of activity and demand for locally produced replacements, and there would be enough time for those to come online.
> it'd spark a frenzy of activity and demand for locally produced replacements
Now you're just being funny. The reason Chinese solar outcompeted European solar is because China can produce at a lower cost. Yeah, Germany could theoretically produce solar panels in required quantities. However, the price is going to be higher. Which means electricity is going to be more expensive. And expensive electricity is one of the problems for the German industry. Let's not forget that many enterprises will simply not survive while the solar production is ramping up.
The rare earths do come from China and that's where most of the environmental damage they cause happens. Rare earths can be mined almost anywhere. They aren't rare but they also aren't concentrated because they aren't water soluble. They are mined in places that don't care about environmental damage, not in places where specific geologic conditions exist (like everything else except AL). Also, you need them to make generators. When you put those generators in wind instead of in hydro or nuclear, you waste them. This is because they will generate 6 to 9 times as much power in hydro or nuclear plants as in a wind turbine.