Aren’t we like flesh robots anyway? In other words, is it our consciousness that gives us the license towards the afterlife or is it our flesh? If humans and animals are imagined to have an afterlife, can electronics have an afterlife?

Perhaps an artificially intelligent machine could upon death turn itself into an invisible immaterial substance, like a soul, when it is finally unplugged or destroyed?