Despite all the obvious and correct replies above, about 15 years ago I managed to send my UK passport along with my clothes to the laundry in Thailand.
It came back having gone through a full cycle and was looking extremely worse for wear with most of the stamps smudged.
I actually continued to travel extensively with that passport, every time I went through a border control I was of course challenged about it but I was polite and just told them it had been washed by accident. It was often met with bemusement.
I was never turned away from anywhere in what must have been 20+ passport controls over
***
years.
I’ll add a disclaimer that I have a second passport so the ‘pressure was off’ as I could have pulled out another passport if denied entry. I purposely tried to use it to avoid filling up my ‘good’ passport.
Of course it should be replaced.
But, with the above in mind I wouldn’t be panicking too much about getting home and going through the motions to replace.
(Might he country dependant, and border guards may have become much more strict).
Just my experience.