No, gold isn't really anywhere near as rare as you've been led to believe. Just like diamonds. And no "rare rock extraction" is involved in making silicon chips. The claim carries no water at all.
my guess is most modern electronics are mostly plastic by weight. oil is kinda like a rare rock? like semi-rare rock juice
a lot of electronics have a fair bit of lithium for the battery, but apparently we get most lithium from seawater. rare by concentration, but usually not extracted in rock form
so yeah rare, not really, and rocks, hardly at all...