Yes, you can absolutely use a bean instead of lentils. Black and kidney beans work really well in this recipe. Because they're a little bigger than lentils, I like to give them a bit of a mash while cooking with the other ingredients.