China has more solar panels because they are more people. If you look at per capita figures, the USA is still leading (as of 2024 at least, I didn't find more recent numbers)
And both are far behind Spain, Portugal, Germany, Belgium, the Netherlands, Greece, Hungary