As a working mathematician, I'm uncomfortable with this apotheosis of 'the proof'. While there's always room for aesthetics, this might support the rather misleading premise that mathematics is about digging up chiseled beauties, when it is really about hours, days and months of flailing around, trying to understand one thing, or even what it means to understand that thing. And it's rarely pretty.
I think Davis and Hersh say this. Ruben Hersh "what is mathematics really" felt like it was opening the door to the sausage factory.
I notice the same phenomena in programming too. The final piece of code that works doesn't reflect all the failed attempts at solving a problem. This is why I tend to not delete/clear cells at all from my jupyter notebooks. :) It is always informative/fun to refer to them at a later point in time to relive that problem solving experience.
PS: In case you haven't, you should try Proofs and Refutations by Lakatos.
Edit: Fixed name of the book mentioned and added some text.