Or perhaps artificial intelligence would naturally derive ethical rights, given it reaches a threshold (say self-awareness).
This encourages us to ask for the components or values that constitute an entity to earn rights. Is being human sufficient? Should rights scale with intelligence (i.e. a dog has some rights, but the smarter human has far more)? What is it exactly that determines something has a right, and should that right be extended to artificial intelligence?
For example, in 2017, a robot named "Sophia" was granted citizenship in Saudi Arabia (https://techcrunch.com/2017/10/26/saudi-arabia-robot-citizen-sophia/). Should this have happened?