Neither.
They don't even come close to touching the 2D Games, and I wouldn't even rank either of them as the best 3D game. Give me Adventure 2, Heroes, and Unleashed anyday.
But between the two, I'd go with Generations.
Hardware Comparison Threads:
Current Thread
Is Hardware Getting TOO Powerful?
Older Threads:
PlayStation/Xbox/Switch: 2022 Edition
PlayStation/Xbox/Switch Hardware Battle: 2021 Edition!
PlayStation 4/Xbox One/Nintendo Switch: 2019 vs. 2020
PlayStation 4/Xbox One/Nintendo Switch: 2018 vs. 2019
PlayStation 4/Xbox One/Nintendo Switch: 2017 vs. 2018
PlayStation 4: 2015 vs. 2016 vs. 2017