LRCX, ASML, NVDA and MCO use strong moats to fend off rivals and deliver consistent returns amid market shifts.