Peel and dice the onion, carrots, and celery into even 1/2-inch pieces, mince the garlic, and rinse the cannellini beans under cold water until the foam disappears. Measure out the broth, squeeze the lemon, and chop the parsley.
Heat the olive oil in a large Dutch oven over medium heat. Add the onion with a pinch of salt and cook 4 to 5 minutes until soft and translucent, then add the carrots and celery and cook another 5 minutes until beginning to soften.
Stir in the garlic, thyme, crushed rosemary, and red pepper flakes and cook about 1 minute until fragrant, being careful not to let the garlic brown.
Add the rinsed beans, vegetable broth, bay leaf, salt, and pepper. Bring to a gentle boil over high heat, about 5 minutes.
Reduce heat to medium-low, partially cover, and simmer 15 minutes until the carrots and celery are completely tender. Remove and discard the bay leaf.
Turn off the heat and pulse an immersion blender 4 to 6 times (about 10 seconds) so part of the soup turns creamy while plenty of beans stay whole. Alternatively, blend about 2 cups in a countertop blender and stir back into the pot.
Return the pot to medium heat and add the spinach in two or three handfuls, stirring until each batch wilts. Cook 2 to 3 minutes until tender and bright green, then remove from heat and stir in the lemon juice and nutritional yeast, if using.
Taste and adjust salt, pepper, or lemon juice, thinning with a splash of broth if needed. Ladle into warm bowls and top with chopped parsley and a crack of black pepper.