misscarrige?

so about three weeks ago I have what I thought what I thought was a period but it was much worse alot more blood than usual and hurt so bad (cramps galore) me and my boyfriend like period sex so while we were yano I lifted up and this was there it's pinkish black, about the size of a quarter, and when I went potty right after a thing fell out that looked like a umbilical cord. (I didn't say at the time I thought it was a baby embryo or something but I thought it was) I've been told that when you miscarry sometimes the baby comes out. my mom said it's just a blood clot and my boyfriend mentioned it today so that's why I'm posting. I'm wondering wha okt y'all think it is or what it could be. (I did just get off birth control too bc my side effects were too bad) please don't rude I'm trying to learn more about my body.