It will depend on the grade (A, B, none) of the TL431, which could yield an accuracy of 0.5%, 1%, or 2%. The calculated temperature coefficient could be greater than 100 ppm/C for the A grade, or 150 ppm/C for the others. So potentially 4 times better than your AMS1117-5.0.