The difference between the two insulations is going to be DIY opposed to hiring an insulator. Even on a smaller wall area doing spray foam out of a can would be expensive compared to batts.
Spray foam is more expensive but it has a higher r value per inch. There is no reason that foam is not DIY. There are a number of companies which specialize in spray foam kits.