There’s a very long and detailed discussion of implementing the ‘famliar clipping mask’ functionality here:
Potential improvements to Inherit Alpha in Krita
Essentially, Inherit Alpha can do all that is needed but is more complicated than the simple clipping mask function that is found in other applications.