Reasons to use Ampharos:
Can be caught before Falkner or after Whitney, depending on whether you want easier battles against Falkner and Bugsy or more experience for the rest of your team
Higher HP
Learns some good coverage moves
Reasons to use Magneton:
More resistances (and not many opponents can hit its weaknesses)
2 STAB types
Higher speed
Learns a spammable STAB move (specifically flash cannon) earlier
Both of these are still mostly the same Pokemon, despite the minor differences I just mentioned. They're obtainable before Morty, evolve at around the same time, are electric type, and have high special attack. They also tend to be good in the exact same boss battles, so I don't think it would depend on the rest of your team, either. Just use whichever one you want. Though if you do use Ampharos, be sure to delay its evolution by 1 level to learn discharge earlier.
source
And here are some movesets for both of them.
Ampharos @ magnet/choice specs
EVs: 100 Spe
- discharge
- charge beam
- thunder wave/focus blast/signal beam
- thunder wave/focus blast/signal beam
Magneton @ magnet/choice specs
EVs: 100 Spe
- discharge
- flash cannon
- charge beam
- thunder wave