Both are safe to eat, either cooked or raw in small pieces. ... If your dog eats a significant amount of broccoli, the upsets could become severe or cause significant health problems or even death. Broccoli stalks are very fibrous and can cause a choking hazard if given in large pieces.