Nice to see that this works! Using the Sphere instead of the Planet because the Sphere has the ability to disable shadows.
To get a clean black and white mask you should also disable the atmosphere (or the planet), because it casts a volumetric shadow that tints the shadow catcher.