NPCs add a lot of value in a two player campaign - think like Baldur’s Gate. It’s more work for the DM, but absolutely doable with either 5E or Pathfinder. Pathfinder has some really fun NPCs and modules to play from, and 5E makes the overall math easier.