You could buy a new EPYC server with solid state drives, grind it up and homogenize the whole thing in acid, and the resulting solution would have a smaller percentage of rare earth elements in it than the same mass of ordinary crustal rocks treated the same way.
Computers don't need rare earth elements. Nor do solar panels, nor do most wind turbines.
See for example the "Consumption" section in the USGS 2015 Minerals Yearbook Rare Earths report:
In descending order of global consumption volume, rare earth elements are consumed by the manufacture of catalysts, magnets, glass polishing media, and metal alloys. Everything else is just miscellaneous.