Dinosaurs' superior lungs may have allowed them to outcompete early mammals, according to a new study of modern-day alligators.