Jobs that offers lots of snacks throughout the day or events with a lot of food is likely to be an even bigger factor.
One time, I talked to a young lady who started a job at a bank shortly after college at around 220 lbs. There were always a lot of doughnuts, bagels, etc. In addition to whatever she ate at home or outside work, she ended up grazing on those snacks a lot. The result was that in a year, she reached 280+ lbs.
Another time at a job I applied for, I try to look up things like employer reviews. One review on Glassdoor mentioned, as a "negative" that there's a lot of events with a lot of food, and that if you aren't careful, you might end up gaining a lot of weight. Unfortunately, I didn't even get called in for an interview for it.
The main thing though, is that for any job, to focus entirely on salary, paid time off (if any), and if in a country that lacks universal healthcare coverage, the healthcare coverage offered. Never take the job that offers a lot of free food, if the salary is significantly less. The loss in salary is almost certainly greater than the value of whatever food there is, which can more easily disappear later on and stop being offered. You always want the job that pays $50-100+/day more even if it lacks doughnuts, because even if you stop by Krispy Kreme every day to pick up doughnuts, you'd still come out ahead.
2 days