The dot com crash was a thing though. The bubble burst. It's just that there was real value there so some of the companies survived and prospered.
Figuring out which was which was absolutely not possible at the time. Not many people foresaw Sun Microsystems as being a victim and nor was it obvious that Amazon would be a victor.
I wouldn't bet my life savings on OpenAI.