Which of the following is an example of an omnivore?

A
an herb like basil, which gets energy from the sun

B
a dog, which eats meat and vegetables

C
a dinosaur that only eats marsh grasses

D
a buzzard that only eats roadkill