If the gap between the surfaces is irregular, an epoxy or other adhesive that also works as a filler is a better option.
That being said, 401 will outperform any low to medium viscosity consumer stuff.
It quickly became hugely popular as a useful and versatile household adhesive.