If it were you....
I see a 2019 Ranger Z185 w/ 150 Pro XS with 20 hours for 32,300
the other a 2017 Z518 w/ 150 regular four stroke with 90 hours for 31,000
Both just have factory options.
Wasn't sure if the little upgrade on the older one was the better option or the lower hours on the newer one was the way to go.