Trout reached the majors swifter than Pujols, so comparing them at their totals through age 27 season is a little misleading in that regard, though not by much. Instead, here's what I did: I went with a strong five year block that would include their MVP seasons and their current best. Trout's five seasons leading into this one, and Pujols' five years through his peak.
Mike Trout, 2014-18: 729 games, .303/.422/.588, 1.010 OPS, 179 OPS+, 178 HR, 452 RBIs, 535 runs, and 103 steals. That's all good for a 44.2 WAR.
Albert Pujols, 2005-09: 770 games, .334/.439/.631, 1.070 OPS, 176 OPS+, 206 HR, 608 RBIs, 571 runs, and 48 stolen bases. That's all good for a 44.6 WAR.
It's Peak Pujols by a nose, and we can certainly debate the weight of the positions they play. Look, saying Peak Pujols is better than Today Trout is not some slight on Trout. It's like saying 1927 Babe Ruth is better than 1948 Stan Musial. They're both great.