Giants, Marlins headed in different directions in tight games