I purchased a new boat about a year ago so this is exactly what I did.
3 group 31 AGM batteries, two for trolling motor and the other for starter/electronics.
They will go thru more charging cycles, don't have the performance dropoff, you can install upside down or sideways if you need to, no acid to get over your boat, no maintenance other than charging.....