Google, Apple, etc are basically stone star forteresses and your conclusion is that moats don't work?

well yeah, it works for those incumbent giants. but the whole point of a "moat" is that it makes it more difficult for everyone else to enter.