They're both the same underlying technology, lead acid. A tradition battery is flooded (FLA), but an AGM has the electrolyte suspended in a glass mat, hence "absorbed glass mat", or AGM.
They both suffer from the same downsides as they're both basically the same - AGM can just be installed in any orientation since the electrolyte can't spill. There are a few minor differences with charge rates and voltages, but they're very minor, and generally, mostly irrelevant for the purpose of longevity.
Sometimes AGM's live a bit longer than FLA because of their marginally better ability to handle vibration, but in a traditional application, longevity ends up being the same in the end.
If I was replacing a battery on anything powersport at this point I'd be going with a lithium honestly - Noco makes some great drop-in replacements that are superior in almost every way, including longevity.