I thank Yedid Nafshi HaRav HaGaon R' Meir Ze'ev Steinmetz Shlita for sending me this source that expresses the idea in this post. Indeed, the law to marry a non-relative is designed in order to uproot one's narcissistic tendencies. [He also pointed out the Be'er Hagola 6/1].
It is well known that Rav Kook's thought is often parallel to that of the Maharal. See here: