I imagine they wouldn’t pass up an easy meal if it was readily available, but it seems suboptimal at best if they were to go out of their way to hunt it.
Think like a lion who’d want to eat, the warthog may be easier to catch, but it’s not as worth the effort as a zebra, so it’d only try for the hog if it needed to