Are brown spots on mushrooms safe?

These expire on the 12th April but they have these spots. Does it mean they are spoiled? Or it's safe to eat ? It's My Fist time cooking mushrooms

The inside looks okayish