I agree with you, and to be honest, find it strange that most of the replies to your comment are dismissive about how bad this is for Masullo. Yes, on one hand, there are some positive aspects in that Alpöge's proof can fill in the holes in his, but on the other, 12 years of Masullo's life was scooped by one man using AI for 6 weeks. If I were in Masullo's shoes, I'd feel like life had sucker punched me, and that I had wasted 12 years to be cheated out of an accomplishment that should have be mine alone instead of being an after thought. Yeah, if he had just started his proof a couple of years earlier, it could have been solely his.
... And actually, have been though this myself quite a bit actually - Had worked for years on my own startup idea with little to show for it, have been stabbed in the back at work a couple of times at least... - and a large majority of us here at HN are in Masullo's shoes as LLM's are taking over more and more of our work. So yeah, agree with you that Masullo is probably feeling mighty low right now, and also that we should have a great deal of sympathy for him.
Have you seen that interview of Weil where he describes his experience working for years in secret on the proof of Fermat's Last Theorem?
https://www.youtube.com/watch?v=GS7CxAtV5Ks
I don't think most of the value in climbing mountains is in getting to the peak quickest or first, and I certainly hope Masullo experienced the kind of deep beauty that still brings Weil to tears years later.