I don't know if that's a real quote from Gates, but I do know it was in Pirates of Silicon Valley.
Seems legit:
https://www.folklore.org/A_Rich_Neighbor_Named_Xerox.html
Seems legit:
https://www.folklore.org/A_Rich_Neighbor_Named_Xerox.html