Nit: Employees don't vest stock. They vest options.
Nit: Some employees vest stock. Some vest options. Companies are different. I've been in a multitude of startups. Two were stock, one was options. For example, the current startup grants restricted stock units.
You can rest assured that if you put your 4+ years into a YC company, and it gets sold while you are no longer with it, your interests and YCs will be aligned. With a YC company, your vested common stock actually _means_ something when you leave the company. (Or, at least it means you and YC will get screwed equally - and as PG rather ominously said, that is something "which most people would think twice about." :-) )
I respectfully disagree with PG on how rare it is for employees who've left a company to get zeroed out or severely diluted compared to the ongoing-employees in an acquisition deal. I've heard enough anecdotes to convince me it is far from "very rare."
Like O'Shaughnessy said: "You’ve got to be in it to win it."