Both policies pay out. However, they SHARE in the loss, so you don't get any extra money for it. That's why it's not smart to carry two different homeowners policies - twice the cost, but you don't get twice the benefit.
Look, this happens sometimes, by accident. It's not fraud, until you lie about not having a second policy in force. And, you will get caught.