Astronomers Reimagine the Making of the Planets
quantamagazine.org
quantamagazine.org
They tend to change a lot once iron starts to form, unless they are stars (and related bright things) that are big enough to create enough pressure for the creation of other elements like gold and platinum that need more nuclear pressure than most others.
We know it rains diamonds within the layers of near-twin planets Neptune and Uranus, so it's not really all that far fetched.
There are a number of theories, and once in a while someone will go beyond the one they teach without debate in grade school.