Tallywell.

Peanut butter vs Almonds

Both count toward 30 plants a week.

Peanut butterAlmonds
Protein · per 100 g25.1 g21.2 g
Fiber · per 100 g5.0 g12.5 g
Energy · per 100 g588 kcal579 kcal
Protein · per 100 kcal4.3 g3.7 g
To hit 30 g protein120 g · 703 kcal142 g · 819 kcal

Bold marks the better side of each row. "Per 100 kcal" answers the density question — which food delivers more protein for the energy it costs. Portion row is computed live from the same USDA base values shown on each food page.