My local landfill growing up had an decent sized methane burn-off flame running 24/7. I would put it on par with a wide open hot air balloon burner. My dad told me it was there to commemorate all the unknown meals that people threw in the trash, so I should always finish my dinner out of respect.
With the obesity epidemic it is probably better to tell people they can just compost their food if there is too much and they can't eat it. And then cook a little less next time.
I keep 100% of foodstuff out of my trash, and an added benefit is that you never get stinky trash that needs to be taken out. I take my trash out every 2 weeks and it never smells at all.
My parents regularly throw out spare food (bread, meat, fruit) onto their lawn, local wildlife (birds, foxes, hedgehogs) always take it all within 24h.
I seperate my compostables as well. I don't even use a trash bag in my bin anymore. My trash bin fill up so slowly that I go months without taking it to the street.
When I was still at school, I had occasion to tour the local sewage treatment facility as a field trip. They had equipment to power all the buildings on site with captured methane, but did not use it, because it was cheaper to just buy electricity from the grid supplier than it was to operate and maintain the generator with free methane fuel. (The methane was still burned.)
The awful thing is that the greenhouse gas emissions involved in manufacturing the generator and maintaining it might have been significantly greater than the emissions due to the grid electricity. Not all these decisions are simple.