Since teratorns were specialized terrestrial predators (and pelagornis was not) argentavis has a huge advantage
Also, iirc pretty sure pelagornithids were not completely flightless, (but they had to run to build power to take off, or by hopping off cliff edges)