Which model is better, one just before overfitting with higher accuracy or one with no overfitting and lower accuracy?
Right now I would say model 1 is better since it has better validation results (If you take the model at epoch 5, not the overfitted one).
However, I would procceed by retraining model 2 for more epochs and check if the results improve.