Two leading candidates for a “theory of everything,” long thought to be incompatible, may be two sides of the same coin.