Although Tyrannosaurus rex liked to dig its teeth into flesh, many of its relatives had beaks, fewer teeth and longer necks and preferred plants, according to a new study.