Money is fungible and dollars are dollars. Donating money to the Foundation means less of the Corporation's dollars have to go to supporting the Foundation (which they do via dividend payments), and so more of the Corporation's dollars go to Firefox.