It’s not good to be so stubborn that you never acknowledge mistakes. But continually beating yourself up over a mistake isn’t good either.
Acknowledge the mistake, rub your nose in it a bit so you’ll learn from it, but don’t beat yourself up about it thereafter.