And there may well be words behind the scenes at Mercedes after Hamilton refused orders to let team-mate Nico Rosberg pass by during the race.
Hamilton judged a thrilling wet-dry race perfectly to hold off title rival Rosberg, who finished fourth.
The result reduced Hamilton's deficit to Rosberg to 11 points.
A spectacular last 10 laps featured a three-way scrap for the lead when Alonso, Hamilton and Ricciardo's diverging strategies brought them together, and with Rosberg closing fast after his own late stop.
But Ricciardo passed Alonso for the victory with three laps to go.
A few laps earlier, Hamilton had been told to let Rosberg by so the German could pit more quickly, and therefore score as many points as possible.
Rosberg complained repeatedly on the radio, asking why Hamilton was not letting him past.
But Hamilton, realising that if he let Rosberg by he was at risk of finishing the race behind him, refused, saying: "Tell him to get closer."
Rosberg's stop on lap 56 ended the discussion, but it will certainly continue behind closed doors at Mercedes after the race.
One of the great F1 races saw the advantage swing backwards and forwards throughout after a wet start, two safety car periods and some thrilling racing in front of a large crowd.
Hamilton had survived a spin on the first lap and started to make up places, and was up to 13th when the first safety car period was triggered after a crash by Caterham's Marcus Ericsson.
Ricciardo's decisive move was to stop for fresh tyres when the second safety car period was caused by a crash involving Sergio Perez's Force India on lap 23.
That put Alonso into the lead, with Rosberg third and Hamilton fifth in a train of cars being held up by Toro Rosso's Jean-Eric Vergne in second when the race restarted on lap 27.
Rosberg pitted for fresh tyres five laps later, fitting 'softs' with the intention of making another stop.
Alonso and Hamilton waited until laps 38 and 39 for their own second stops, deciding not to pit again before the end of the 70-lap race.
Hamilton's stop promoted Ricciardo to the lead until his own final stop on 54, from which he rejoined fourth, behind Alonso, Hamilton and Rosberg.
Ricciardo reduced the gap to the leaders rapidly, from 6.6 seconds behind Hamilton on lap 57 to be on the Mercedes' gearbox four laps later.
Alonso was battling worn 'soft' tyres, Hamilton was on slightly newer 'medium' tyres and Ricciardo and the rapidly closing Rosberg in fourth on relatively fresh 'softs'.
Alonso cut the chicane on lap 63, prompting Hamilton to complain that "Fernando gained an advantage" but soon the Mercedes driver had to worry more about Ricciardo, who began to pile pressure on with his extra grip.
Ricciardo took second with a superb move around the outside of Hamilton at Turn Two on lap 67 and dived past Alonso's struggling Ferrari for the lead at the start of the next lap.
But Alonso managed to hold off Hamilton, who in turn fended off his team-mate to the flag.
Earlier, Ricciardo's team-mate Sebastian Vettel threw away his own chances with a spin out of the last corner on lap 32.
Vettel had been one place ahead of Hamilton in the queue of cars behind Vergne, but ran wide out of the last corner on to the kerb and lost control.
Unlike Perez, who made exactly the same mistake seven laps after his car was damaged in a collision with team-mate Nico Hulkenberg on lap 16, Vettel did not hit anything and rejoined the race, but his hopes of victory were over.
Leaderboard - Final | Points | Time/Lag | |
1 | Daniel Ricciardo - Red Bull | 25 | 1:53:05.058 |
2 | Fernando Alonso - Ferrari | 18 | +5.225 Sec |
3 | Lewis Hamilton - Mercedes | 15 | +5.857 Sec |
4 | Nico Rosberg - Mercedes | 12 | +6.361 Sec |
5 | Felipe Massa - Williams | 10 | +29.841 Sec |
6 | Kimi Raikkonen - Ferrari | 8 | +31.491 Sec |
7 | Sebastian Vettel - Red Bull | 6 | +40.964 Sec |
8 | Valtteri Bottas - Williams | 4 | +41.344 Sec |
9 | Jean-Eric Vergne - Toro Rosso | 2 | +58.527 Sec |
10 | Jenson Button - McLaren | 1 | +1:07.280 Sec |
11 | Adrian Sutil - Sauber | 0 | +1:08.169 Sec |
12 | Kevin Magnussen - McLaren | 0 | +1:18.465 Sec |
13 | Pastor Maldonado - Lotus | 0 | +1:24.024 Sec |
14 | Daniil Kvyat - Toro Rosso | 0 | - |
15 | Jules Bianchi - Marussia | 0 | - |
16 | Max Chilton - Marussia | 0 | - |
17 | Esteban Gutierrez - Sauber | 0 | - |
18 | Kamui Kobayashi - Caterham | 0 | - |
19 | Sergio Perez - Force India | 0 | - |
20 | Nico Hulkenberg - Force India | 0 | - |
21 | Romain Grosjean - Lotus | 0 | - |
22 | Marcus Ericsson - Caterham |
As of: Hungarian Grand Prix | +/- | Points | Behind | Wins | |
1 | Nico Rosberg - Mercedes | – | 202 | ? | 4 |
2 | Lewis Hamilton - Mercedes | – | 191 | 11 | 5 |
3 | Daniel Ricciardo - Red Bull | – | 131 | 71 | 2 |
4 | Fernando Alonso - Ferrari | – | 115 | 87 | 0 |
5 | Valtteri Bottas - Williams | – | 95 | 107 | 0 |
6 | Sebastian Vettel - Red Bull | – | 88 | 114 | 0 |
7 | Nico Hulkenberg - Force India | – | 69 | 133 | 0 |
8 | Jenson Button - McLaren | – | 60 | 142 | 0 |
9 | Felipe Massa - Williams | +1 | 40 | 162 | 0 |
10 | Kevin Magnussen - McLaren | -1 | 37 | 165 | 0 |
11 | Sergio Perez - Force India | – | 29 | 173 | 0 |
12 | Kimi Raikkonen - Ferrari | – | 27 | 175 | 0 |
13 | Jean-Eric Vergne - Toro Rosso | – | 11 | 191 | 0 |
14 | Romain Grosjean - Lotus | – | 8 | 194 | 0 |
15 | Daniil Kvyat - Toro Rosso | – | 6 | 196 | 0 |
16 | Jules Bianchi - Marussia | – | 2 | 200 | 0 |
17 | Adrian Sutil - Sauber | – | 0 | 202 | 0 |
18 | Marcus Ericsson - Caterham | – | 0 | 202 | 0 |
19 | Pastor Maldonado - Lotus | – | 0 | 202 | 0 |
20 | Esteban Gutierrez - Sauber | – | 0 | 202 | 0 |
Pos | Team | Points |
1 | Mercedes | 393 |
2 | Red Bull Racing-Renault | 219 |
3 | Ferrari | 142 |
4 | Williams-Mercedes | 135 |
5 | Force India-Mercedes | 98 |
6 | McLaren-Mercedes | 97 |
7 | STR-Renault | 17 |
8 | Lotus-Renault | 8 |
9 | Marussia-Ferrari | 2 |
10 | Sauber-Ferrari | 0 |
11 | Caterham-Renault | 0 |