I guess beef includes dairy?
Beef cattle are different from dairy cattle. Each are distinctly optimised for their respective output. Most of the deforestation is related to cattle grown in Brazil for meat.