What happens if I apply both l1b and h1b

I am currently visiting the US on b1 VISA and my employer wants me to work in the U.S. for few more months and they are processing L1b for me. However I also got another offer from different employer in the US and they submitting an application to process my h1b. My L1b visa interview is scheduled on April end . Assuming I get L1b approved and I move to the U.S. , what will happen if also my h1 gets selected in lottery later?

Would I have the choice to continue work for my current employer with L1 visa or would I be required to join the employer who sponsored for my h1? Would my L1b visa automatically invalidated?