You may see that neither one is approved if it is discovered by USCIS that there are multiple petitions filed on your behalf.  This is not acceptable.  But even if not discovered and both are approved, you can only get one H-1B visa in your passport.