While the podium sitters could not have done any better, Ferrari will be left wondering what might have happened had they not pitted Vettel under the virtual safety auto.
The Ferrari pitstop mishap saw Red Bull'sMax Verstappen promoted to third spot, although Vettel was adamant a second stop was necessary given the state of his tyres.
The world champion has looked off-colour in the past three races, and his win in Baku owed a substantial amount to luck - on form, without the chaotic final laps following the crash between the Red Bulls and subsequent safety vehicle, he would have been third there behind team-mate Valtteri Bottas and Vettel, and the Finn would have been leading the championship. The circuit still caught several drivers out throughout the race, with Williams rookie Sergey Sirotkin spinning out after a long period of driving slowly at VSC pace. Kevin Magnussen (Haas): +1 lap 7.
Sergio Perez claimed two points for Force India, finishing ahead of Charles Leclerc who hung on to the final point after again showcasing his burgeoning talent for Sauber.
Bottas was a tenth of a second faster in the morning session than Hamilton's afternoon time at the 4.6-kilometre track outside Barcelona.
It was Hamilton's second win in succession, and the Briton acknowledged it had been by far his most complete race of the season.
Hamilton blasted out the blocks from pole position at Barcelona's Circuit de Catalunya and from there his second victory in as many rounds never appeared in doubt.
Hamilton got half the job done by securing pole on Saturday and, while there was plenty of action behind him at the start on Sunday, the Englishman had no problem holding onto first place.
It should also be a good chance for Red Bull to bounce back after last race's disaster. It is the closest to that feeling I had a year ago in terms of feeling comfortable with the auto. "It's a really good feeling". When there is no surface left on the tyre it is so easy to lose temperature and if you let it switch off you are done and you are going to start locking up.
Bottas' late retirement in Baku handed Hamilton his first win of the season on a plate - a result that edged him ahead of Vettel in the drivers' standings for the first time this term - and he followed that up with Sunday's impressive performance.
Hamilton, like team-mate Bottas, has less than year remaining on his current contract and has been elusive on making any firm commitments to both Mercedes and Formula One at various times in recent months.
"For us it was not an option to stay out", he told Sky Sports. But I think it's our understanding and improvements we have been making to the vehicle.
"It obviously looks wrong, but from the inside it was the right thing to do", he said.