confused between f1 or h1b

I am going for my master’s in US for mis course after 4 yrs of work ex in IT. At the same time, my company has applied for H1B this year. I dont know the status of the same. But the city for which they have applied LCA request does not have QA role, so I would have to change the role if my lottery, petition is approved till october or december. But changing LCA or applying for different state will take 4 months in my company. While the university I am going this august has 9 months course and 6 month internship afterwards. So shall I wait for the status of H1b or move ahead for MS. Actually the course for which I am going will not give me indepth knowledge as well. If you could give me some suggestions, it would be great help.

Thanking in advance