If we ever create true artificial intelligence with sentience, I would consider having sex with a robot. Like the character of Vision from the MCU is very attractive, but key to it is the fact that he's sentient and has not just intelligence but emotions.
The other instance where I would consider having sex with a robot body, is if it was like a haptic interface with a long distance lover who was controlling it in VR.