Tallywell.

Peanuts (roasted) vs Peanut butter

Both count toward 30 plants a week.

Peanuts (roasted)Peanut butter
Protein · per 100 g25.8 g25.1 g
Fiber · per 100 g8.5 g5.0 g
Energy · per 100 g567 kcal588 kcal
Protein · per 100 kcal4.6 g4.3 g
To hit 30 g protein116 g · 659 kcal120 g · 703 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.