Yea, we'd need to filter out the behavioural angles to clearly identify causal relationships.
Do people who live longer just happen to start eating differently etc.
For example, the better I feel, the better I eat. It's not the bad eating that makes me feel bad - the better eating is a consequence of feeling better.
I can tell exactly when my diet is going to tank, when my chronic conditions flare. Diet has zero effect on them.