H1B expiring, new job offer not here yet. What should I do to stay on legally?

H1B expiring end of month; I-94 expiring 10 days after that; Employer told me they will not renew; I started actively interviewing; offers likely to come in 30 to 60 days from now.

(Question 1) Should I (A) file a COS from H1B to B1/B2 or (B) leave US and return under B1/B2 visa? Assuming all else being equal and perfect immigration record, which method is a safer bet?

(Question 2) For each option, what is the deadline - H1B or I-94 expiry date?

(Question 3) Is there another way for me to stay on legally aside from these 2?

Thank you very much for all your help.

Best way is to go out of country and come back when you get a project. i94 is generally 10 days later to H1, so it’s ok to stay till i94 date (but better to leave before h1 expiry)