Pesto is a combination of basil, garlic, hard cheese such as Parmesan, pine nuts, and olive oil, generally processed into a paste-like consistency, while chimichurri sauce does not use cheese or nuts, contains different spices, and has a more sauce-like texture than pesto.