Depends. Extremely good lenses like the Fujifilm GF 30mm f/5.6 will definitely outperform correcting perspective in Photoshop. Of course, that costs many thousands of dollars.
But comparing older Canon TS-E 24mm f/3.5, or the Samyang/Rokinon 24mm f/3.5 against any decent wide angle lens nowadays is a wash.