You don't work full 12 hour continuously. You'll take numbers of breaks in between, for example lunch, snacks, napping, coffee, stroll around, exercise, gym, meditation, games, etc.
What's the difference between that and working 7-8 hours with fewer breaks? Answer: The 7-8 hour person will create better products with fewer bugs (all else being equal).