1995 Camry

My 1995 Camry (226,000 miles 4 cylinder automatic) dies sporadically. If I wait 6 – 12 hours, it starts up. I replaced the plugs, wired, cap and rotor. My mechanic wants to replace the distributor. When it dies, it feels like it is out of gas, lack of acceleration, then dies. I think it is flooding out, that is why it starts after waiting. Any thoughts?