Google is just one of multiple similar search products that prevailed through better execution and marketing.
Myspace was never ever a technology company and neither were many of the competing social networks like Friendster. Facebook just built a better product. Just like Google did.