My trail bike is a 2010 Cannondale Scalpel I bought used. It was a state-of-the-art racing machine in the 26" era and it's light and fun to ride.
Today I rode a friend's 2018 Trek Fuel EX alloy bike with 27.5" wheels. The Scalpel is lighter and has nicer brake levers -- but in every other way the $2,500 Fuel EX is a much better bike. Faster to climb, faster to descend, faster to cross country, better on the bumps, better shifting over a 1x range.
Huge price drop for better quality in 8 years. That's faster progress than my MacBook.