Depends on the mileage and current condition of each vehicle. But if I was used car shopping, I'd rather put my bets on a Toyota for reliability and longevity.
The Corolla and Impala are in 2 different categories though. The Toyota Avalon would be a closer match to the Impala or the Chevy Cobalt would be the closest Chevrolet model to the Corolla.