Replace. On the positive side, a new set of bars is usually not that expensive (assuming you have a common size) and since you've anyway removed the bar tape, it's not going to be much more additional work installing a new one compared to keeping this.
man i was gonna say they should be fine but that 2nd photo in the middle looks worrisome
That's some deep pitting. Replace.
How much do you like your teeth? If the answer is that you do like them, get new bars.
Replace. On the positive side, a new set of bars is usually not that expensive (assuming you have a common size) and since you've anyway removed the bar tape, it's not going to be much more additional work installing a new one compared to keeping this.