Miscarriage or fleshy period????

I’m very scared and confused. No idea what this is. Awful cramps for 6 days. Spotting that got a little heavier each day. I’m on the pill. This came out today it’s hard and fleshy. WHAT IS THIS?????