Punctuality wise, it's the Shinkansen then the AVE (both waaaaaaaaaaay above 99%). If I have to choose between a high-speed train (up to 3-4 hours) and a plane (same distance in ~1 hr), I'll choose the train assuming the price is comparable. The convenience can't be beat, and you have much more time to work on the train.