He was the real Cap. Reality was altered to change him, but it didn't create a second Cap. On the other hand, the Cap who came out of the story was explicitly a creation of the memories of Cap from others based on how he was before reality was rewritten. But, given that it's a cosmic cube, it's entirely possible for the new good Cap to also be the real Cap because the laws of physic or logic doesn't apply.