This Quora answer suggests it's sorta incest right? Or am I being moronic here?
They are third cousins, if my counting is correct (they share the same great, great, great grandparents - Victoria and Albert). This was, by no means, uncommon among British Royals. A few examples that predate Elizabeth and Phillip would include:
That marks every single reigning monarch of the Royal Family of the United Kingdom with the single exception of Edward VIII, who married the American divorcee Wallis Simpson. There is no known relation between the two.
EDIT: It's worth noting that, from what I understand, cousin marriage beyond the first cousin ranks carries a very minimal risk of genetic defect. Even regular cousin marriage (i.e. first cousins) doesn't carry an especially high risk, just higher than most people would find acceptable. It's also worth noting that cousin marriage is not proscribed in Christianity, which would have been the basis of the moral system of most of these monarchs.
EDIT 2: Thanks for correcting my math, u/purpleistari