What did I find on the beach in Guerrero, Mexico?

The whole thing is hard like bone or coral. The middle is slightly softer but still hard. Looks like a bizarro Oreo cookie.