Since it is the same day, I think you should call USCIS ASAP.
Usually, the later approved one is your final one. You should cancel your F2 application when you submit your H1 application.
Usually, the later approved one is your final one. You should cancel your F2 application when you submit your H1 application.