Ricciardo would probably be a thorn on Hamilton's side, but one that Hamilton be able to take out quite safely.
He'd still do better than Vettel would, and maybe also even Leclerc, though based on experience (or more, Leclerc's lack thereof) than pure pace. At this point I think Max would beat Lewis most of the time with equal machinery, but it would be rather close.
What's more interesting is whether Vettel would beat Sergio Perez if he was to join Racing Point/Aston Martin (and both would race with equal machinery with no preferential treatment). Remember that racing in the midfield usually involves more w2w action...