Wikipedia describes spiritual enlightenment as follows:
Enlightenment is the "full comprehension of a situation". The term is commonly used to denote the Age of Enlightenment, but is also used in Western cultures in a religious context. It translates several Buddhist terms and concepts, most notably bodhi, kensho and satori. Related terms from Asian religions are moksha (liberation) in Hinduism, Kevala Jnana in Jainism, and ushta in Zoroastrianism.
They describe Hindu moksha as
In Indian religions moksha...is the final extrication of the soul or consciousness (purusha) from samsara and the bringing to an end of all the suffering involved in being subject to the cycle of repeated death and rebirth (reincarnation).
From one perspective this sounds like a death that no reincarnation interrupts. As the OP suggests this may be like being a robot "free from pain and suffering and happiness".
Their quote from Vivekananda, however, offers another perspective on the goal of enlightenment:
[Y]oga is a meditative exercise of withdrawal from the particular and identification with the universal, leading to contemplation of oneself as the most universal, namely, Consciousness. This approach is different from the classical yoga of complete thought suppression.
Far from being a death, this identification with universal Consciousness suggests that there might be more going on with having an enlightened consciousness. In that case, enlightenment would not be comparable to being a robot.
Wikipedia contributors. (2019, June 20). Enlightenment (spiritual). In Wikipedia, The Free Encyclopedia. Retrieved 12:55, June 25, 2019, from https://en.wikipedia.org/w/index.php?title=Enlightenment_(spiritual)&oldid=902675042