Yes. Do not trust software on things like this. For instance, the plural of "prey" (the noun) is "prey."
I would use "for" in the first sentence and "to" in the second, but don't think the other way around is necessarily incorrect.
"Food for her" sounds better to me because she can regard the prey as food. The plant can not regard anything as food.
Student or Learner