None of them is good for it
Magnezone's main niche in the meta is to trap and remove pesky Steel-types such as Corviknight, Skarmory and Ferrothorn -- with Magnet Pull. This support greatly enables many of the strongest sweepers and wallbreakers in the tier, such as Garchomp and Rillaboom.
Magnet Pull, in tandem with an Electric-type STAB and Body Press + Iron Defense, can make hay of the aforementioned Pokémon, paving way for some physical attackers to wallbreak/sweep. This is Magnezone's most common set, which can easily remove Steel-types, and can also make use of the momentum loss from certain Pokémon such as Blissey, as it can set up free Iron Defense's on them, and can heavily damage an opposing team if left unchecked.
Another of Magnezone's notable sets is Choice Specs, which can severely dent unprepared teams, but looses on the ability to trap and eliminate Ferrothorn. It makes use of the loss of recovery of its common switchins in Landorus-Therian and Garchomp, as they can't continuously switch into a Specs-boosted Flash Cannon.
Overall, neither Sturdy nor Analytic have a niche in the current OU metagame. Magnezone's best off as a traper, and that's what you'll usually be running.
Hope it helped!