A resume tells someone what you claim to have done. A portfolio lets them see it.
What a portfolio actually needs
Not dozens of projects — two or three, explained clearly, with the reasoning behind key decisions visible, beat a long list of unexplained repositories.
Where this matters most
Roles with a strong practical component — engineering, design, writing — where seeing the work directly answers questions a resume can only gesture at.