Chalk it up as bad luck, toss it, go back about my day.
Let's just say by chance I'm a really big fan of yogurt, and I really love this brand and it's an important part of my life for some reason... Then I may write an email to said company producing the yogurt and say something the affect of "hey, I'm not trying to get anything free here, but I bought some yogurt from X store on X day, and even though the seal wasn't broken, when I opened it on X day it was spoiled. The listed expiration is X. I eat your product every day, and just wanted to let you know as it pertains to quality control and if I were in your shoes I'd want to know too, because I know some people would make a big stink about it on social media and such, and I'm sure you want to prevent that kind of thing." yadda yadda yadda blaw blaw blaw, just to make them aware that they might have some faulty lids or something.
If said company gets a lot of these kind of complaints they may look into it.