Actually, I just came from the same situation.
I applied for a job at company X, at Facebook, at Google, and I also applied to YC. After interviewing at company X, I thought this is the best job ever, I would love to do this.
I then got YC, so cancelled the Google and Facebook interviews. I told company X, who took it well. So well they offered me the job anyway---to take in the likely event of my startup failing. They also started my visa paperwork---an $8-15K expense---and said they'd just absorb the loss if my company worked out.
There isn't really a point to this, except that maybe you can have your cake and eat it. Also, if you find an amazing company, maybe they'll prove to be even more amazing than you thought.