Because FastCraft is open source and OptiFine is closed source, they do not conflict. In fact, most PvP "clients" (like Lunar Client or Badlion) use FastCraft code inside their optimization layer. To get the maximum FPS (e.g., 300+ for a 144Hz or 240Hz monitor), install both.