I see eating those as more akin to part of its sexual reproduction and continuation of life, like a bee taking nectar from a flower. As far as I understand it, Natural order works where a "food" matures, falls, and an "animal" eats it and passes its seeds through its digestive system. This process deposits the seeds in a fertilized position to grow its next generation. In a more poetic form, you can hear this in the Mahamrityunjaya Mantra[0,1] (Great Death-conquering Mantra), ~"...like a good gardener releases the cucumber from captivity (of its stem), free me from death but not from immortality."
That's true for fruits (in the botanical sense), not roots (carrots), fungi (mushrooms), or cabbage and lettuce. You're killing or injuring the organism and not helping perpetuate it in any way.
When a human harvests those organisms and replants their seeds among compost, it seems awfully similar to me. (Yes, I understand they each have some level of awareness similar to a mammal and bird. Here, we seem to focus on the meaning of killing. Perhaps our frame of reference which would call one yes and one no limits our ability to understand what happens in these processes.)
Tangent hidden in Mahamrityunjaya: If your unit of analysis of Life consists of one body of directly wired cells, then death for it would seem to occur when it stops nourishing itself or starts nourishing another body of directly wired cells. If on the other hand your unit of analysis for Life is Life, then replanting its seed is its continuation, afaict. This opens a paradox... If eating a head of lettuce seems fine while a new crop grows, then why not a head of cow while its calves grow too?
People can get trapped in their heads by paradoxes, so I like to go by my gut and my heart (don't worry, they're connected to my brain and they have a lot of neurons, see peripheral nervous system[0]) and econophysics[1](?linked document seems to have changed a lot). So, basically cold, hard calculation in a warm, soft body. If I can run my home on cow meat and feel good about it then bravo, but I can't for two reasons: 1) I love Life and want to maximize and respect it 2) eating cows is horrendously inefficient, for example you can get 6x as much meat from the same exact inputs of feed and water from meat rabbits.
Meat rabbit production seem like a very good investment right now and a potential focal point for planning my near-term food sources. They can also eat the grain stalks and inedible carrot leaves etc, and their poop works extremely well for compost. I want simply to figure out how to make the most of my available inputs, so if I can turn those green leaves into mushroom food instead and still grow enough grain while I use those stalks for construction projects etc, then great. We're talking about living here, so it's a matter of costs and benefits, right?.. what's Life worth?
None of those foods have seeds. You're not going to get anything out of the compost except rot. You're not helping them reproduce. The only maybe exception is mushrooms, since when they get plucked up you might spread spores.
Mushrooms are the fruiting body of a much larger fungal complex. Many fungi use the fact that animals carry the mushrooms (and their spores) off to eat as a reproductive strategy.
0: https://en.wikipedia.org/wiki/Mahamrityunjaya_Mantra#Literal...
1: https://www.youtube.com/watch?v=q1uj3_rW7Uc