Some years ago, maybe as long as twenty or thirty, I read that some paleontologists believe that mammals existed before the dinosaurs, but mostly lost out in the competition.
Mammal-like reptiles - Dimetrodon, Cynodonts.