OpenAI taking an interest wouldn't be so bad for Replit. Since YC boasts that being incestuous is an upside of YC, ie selling your product to other YC companies, it is possible that OpenAI does the decent thing an outright buys Replit. It is rather likely that Altman and Masad have some sort of relationship going back to their YC days.

Why would OpenAI buy Replit? My point is, if Sam's model is so great and advanced, it should be able to autonomously code a replacement. Or Cursor, or any of the others.

Replit has a lot of "value" that's actually dead weight that's going to fall by the wayside as AI gets better and humans move out of the loop. Cursor and the IDE agent companies have the same problem. They need to cannibalize their products to build for the fully autonomous engineering future, but I'm 95% certain that they won't, and the business that DO focus on full automation and moving the human out of the loop will eat their lunch.