I'd think the reliability would be equal. The Gen 4 9mm's had some problems early on, I believe, because they shipped with recoil spring assemblies optimized for the .40 S&W guns. That paired with lightweight, low powered training ammo caused problems. Glock fixed that very quickly. Ejection issues have been an issue for the Gen 3 and Gen 4 guns of the same era.
I prefer the grip of the Gen 4 over the Gen 3, so of the two I'd pick the Gen 4. Of course the Gen 5 guns are now available, and they may be a better choice.
I think any Glock should be reliable and durable. Pick the Gen that has the features you prefer.