Well, it is totally your choice whether you join companyA or B. Even if your CompanyB petition petition gets approved, you will not have to shift to companyB mandatorily. But you better let the employerB know that you will not be joining to be more professional.