Both of these extracts will give the ice cream a minty flavor and they are similar in many ways. However, peppermint gives a stronger, more intense flavor so you may find you need to add more spearmint extract to get enough minty flavor if using it as a substitute.