Hi,
On a wheelock, the hardened wheel bites into the pyrite, which is somewhat soft, and shards of pyrite are scraped off and heated to an incendiary condition that ignites the powder. The action is a lot like a cigarette lighter. The pyrite is the source of the incendiary material and because it is softer than the wheel, it does not wear down the grooves on the wheel. On a flintlock, the hard flint bites into the frizzen, scraping off tiny shards of steel that are heated to an incendiary condition. Therefore, the frizzen, not the flint, is the source of incendiary material and the flint must be hard and sharp enough to scrape off steel. A pyrite likely would not do that although the frizzen might chip off some pyrite that creates a few sparks. Regardless, the pyrite would not last for many shots.
dave