I currently work as a fullstack software developer and I just got offered a very generous job that's about 2x my current pay at a startup company. In addition, my current job has no holiday or benefits and this startup is offering a very generous benefits package and tons of vacation time.
I really want to accept it but I'm also in the process of interviewing for one of my dream jobs at Google, and if I got it I would be getting a 3-4x pay increase and my career would be set. There's no guarantee I get this job.
What I'm planning to do is accept the new job, sign the papers, and keep interviewing at Google. Then if I get into Google quit and turn down the offer I just signed.
Is it legal to do this? Would it cause harm to my career? Getting into Google is a once in a lifetime opportunity, and I don't want to pass it up. I also don't want to stay at my current job because I have got a much better opportunity and because there's no guarantee I'd get into Google.