I don't know what constitutes as 'great' and 'dedicated' in your books, but I'm pretty happy with how my career and life so far ended up at.
I joined a FAANGM straight out of Uni, wrote code that currently runs even today on billions of devices worldwide, and services that processes requests also in billions.
Then ended up at another FAANG with similar outcomes.
Being at large corps in my early 20s was one of the best things that happened to me financially, setting me up for life by 30 to pursue anything I wanted - a lot of it was timing and luck, but some credit for my dedication wouldn't be asking too much.
The startup, on the other hand, was bought out and the service eventually scrapped. I'm pretty sure that code doesn't even exist anymore or an archive somewhere never to be touched. Ironically, this is the place I've had to work the hardest.
Today, I can at least get my foot in the door at most places purely based on past experiences. Whenever some company wants me to do a song and dance take-home interviews, I respectfully tell them to knock it off and they usually do.
I'm definitely focused on family now, and I'd argue it is the greatest thing I'll ever achieve.
I hope young, newly-minted engineers don't take your advice too seriously.
You can definitely forge your path in multiple ways in your life. Not drinking the kool-aid is paramount to maintaining perspective of what really matters in life.
Every decade or 5-year chunks of your life, has unique phases, choices/oppurtunities and experiences that are strictly for that part of your life. Your real job is to figure out which to pick and choose to minimize regrets.
Paraphrasing another HN comment -- In a decade, the only people who will remember you worked late to go above and beyond to deliver, is your kids. And if you choose not to have kids, well there's your answer.