Can someone explain to me how come these two operations yield different return values, using x=200, y=100?

Code:
// this returns 200
((x + y) > 255) ? (255) : (x + y);
    
// this returns 255
if((x + y) > 255) return 255;
    return x + y;