This one gets argued over constantly, and both of the usual answers have merit.
The Legend of Zelda is a common pick, with around 20 mainline and spin-off titles. Final Fantasy, however, has considerably more entries once you count the numbered sequels, spin-offs and portable releases.
So on raw count, Final Fantasy is the stronger claim.