They’re both essentially vaporizing a metal with high heat to deposit upon a substrate above. Early smelting was just looking to purify the metal and remove impurities, and now we’ve refined that same technique with strictly controlled parameters to deposit exactly what metal we want to have where, to build the microscopic features of modern computer chips.
As your body shuts down, everything you try fails to work, one after another, and you learn every lie you ever told yourself about who/what you are. Once your consciousness has broken down to a previous state you can start again with another life, eventually forgetting everything that happened before.