The main difference between domain squatting and domain investing lies in the intent. Domain squatting aims to prevent others from purchasing the domain, while domain investing involves buying undervalued domains and reselling them at a higher price based on market demand and trends.