They did have something in common. Unfortunately this shared situation was the primary reason their marriage did NOT work.
Charles, like his great uncle, needed comforting and approval from a mother figure, which he ultimately found in a paramour rather than his parent.
Diana, like Charles, sought approval from an emotionally distant parent, in this case her father, and when that was not forthcoming pinned her hopes on receiving comfort and approval from a chronologically mature husband.
So many people were appalled that Charles would be rejecting of a young and beautiful girl who was initially fresh and virginal, then ultimately blossomed into not just a warm and loving mother but a woman of provocative and seductive allure. If you've read the comment, however, that Charles supposedly made to a friend after his initial sexual experience with Diana, it's obvious he was used to being served rather than serving. (Alas, a contradiction of the Windsor family motto.) And the transcripts of his [non]private phone conversations with Camilla make it plain that she was and is the supportive, reassuring and motherly figure Charles craved. Diana was a loving mother to her boys, but the support she was ready to furnish her husband was wifely rather than motherly; she wanted Charles to be her pillar of support rather than just a pillar. (That, of course, is pilfered from "The Philadelphia Story," but it will do.) It must have been intensely confusing to her, and frustrating to Charles, that what they sought from each other was not there to be found.
So had there been no Camilla--or anyone else like her--not to mention the long line of men willing to provide sexual comfort to Diana, would the Wales marriage have survived? Perhaps. But that depends on your definition of the word "survival," and whether or not mere survival is enough. Without intensive therapy and a willingness on the parts of both Charles and Diana to commit ONLY to each other the marriage would not have thrived, though it probably would have hobbled along like an old cart with one or more broken wheels until they both reached an age of amicable tolerance and/or indifference.