I can assure you the reaction at hand is not limited to those you suggest.
I know because I faced my own mortality, if only for a brief moment of time, far earlier than I ever expected and earlier than most would prefer I think. And when I did, this exact realisation hit me like a freight train. I don’t think I’ve ever experienced a more profound, visceral moment.
What also may have helped, is developing quite a deep and close relationship with an individual who would later go on to pass from cystic fibrosis.
Now one of this is to say I may not now have an entirely different reaction when again it comes time for my card to be punched. However I feel like this has been somewhat tested by the SCI that would follow five years later. It's also not to say that what I felt had been a waste vs what is important will be applicable to all of us, in fact I am sure that realistically, it will be deeply different, personal and particular to each of us as individuals.
When I have particularly bad days as a result of my unlucky medical outcomes, I remind myself of what I experienced that night, and how lucky I was ultimately to be able to experience something like that, and then actually have somewhat of a "second chance" at taking a look down the second fork in the road.
TL;DR
I give 100x times less of a shit about a "career/being productive/min-maxing" than I once did. Your mileage may vary.