However, before we get back that far in evolutionary history we discover that, for much of the Age of Mammals, there was an additional family of animals belonging to the broad group that includes both bears and dogs, and which is no longer with us. These were the beardogs, more technically known as amphicyonids.
Beardogs were not, despite the name, the ancestors of bears and dogs. They were a separate family, one containing animals that looked a bit like bears and a bit like dogs, and which needed a common name of their own. "Beardogs" gets across both those physical features and the fact that they are, indeed, related to the two living families... having said which, it is not at all clear which, if either, of the two they are closer to, in part because the first of them appeared so early.