I can't tell you how many times I've done a guest checkout, then come back to register and my order doesn't show up in the history, even if the email matches. Now I make sure to try to register first as it's such a broken experience in too many places if you don't.