Hamlin wins Duel Two as Johnson, Bowyer, others crash at the flag