The KT extinctions was particularly hard on large apex predators, such as pterosaurs, that faced a sever food shortage relative to their size, compared to smaller herbivorous birds that require less food, such as seeds, that was more available. Birds were also more diverse in terms of species, habitat and food sources in the cretaceous. Based on brain size, birds may have been smarter than pterosaurs too.
—David Foss