Over longer periods, the top companies by market cap tend to change though. https://www.investmentnews.com/equities/only-one-of-the-worl...
So if you want to invest in the top companies, you either need to think they won’t change anymore, or you need to find when to buy and sell. Index funds solve this problem for you, albeit with slightly lower returns in the short term.
Or go with a NASDAQ 100 index: you'll generally get higher returns than the S&P 500 or Russell 3000, but you'll also get higher volatility. How well would you sleep at night with drops of -20% more often?
* https://www.investopedia.com/nasdaq-100-or-s-and-p-500-the-b...
Reminder that US stocks can do badly (and the only thing that could save US domestic investors is bonds):
* https://www.forbes.com/sites/investor/2010/12/17/the-lost-de...
You'll be more exposed to screwing things up when companies enter/leave.