Cashews are the closest match in terms of flavour and texture. But you can also make pesto with walnuts or almonds. For nut-free pesto, sunflower seeds or pepitas are a great alternative.