Cherry 2000
http://www.youtube.com/watch?v=kckEEQKXaCU
I'm pretty sure Westworld featured this theme too, years before Cherry 2000.
Actually, the sex-robot thing goes way, way back, as far as Metropolis. Even further in books.