It's not plain to me where you're going. But the answer about the core of a planet engulfed by the sun is that it vaporizes eventually, just not right away.