Doctor Eggman vs Nagini: who would win?

Too close to call

Doctor Eggman · Sonic · Base

Tier
9-B, up to 5-B
Attack Potency
Wall Level, up to Planet Level
Speed
Peak Human, up to Massively Hypersonic
Durability
Large Building Level, up to Town Level+

Nagini · Harry Potter · Snake form/Horcrux

Tier
9-B
Attack Potency
Wall Level
Speed
Below Average Human, up to Subsonic
Durability
Large Building Level, up to Multi-City Block Level

A heuristic estimate from normalized VS Battles Wiki stats: tier, attack potency, speed and durability.