Online high school or GED?

Hello,
I am currently enrolled in a high school in New York. I recently moved to NY from Pakistan and
I have completed grades 9, 10 and 11 in Pakistan. Due to some issues I missed the first semester of 12th grade and I have been suggested to complete the first semester online and attend the 2nd semester in school simultaneously in order to graduate this year by June. How about I switch to online high school now and complete both the semesters online?