Both deposits will lead to monetary expansions, but the deposit that results from the fed's purchase of bonds is new money, whereas the $5,000 from the cookie jar first, the public pays for these bonds with its holdings of currency and bank deposits, directly reducing the amount of money in circulation.