Just to be clear, he bought them so the kid wouldn’t be able to get one? Nuts on that. As I say, forget spiting the kid, I’d spite the mom. I’d give the kid the pies and a puppy. Good luck, lady.
I believe he was attacking the mom through the kid; i.e., giving her that much more temper tantrum to endure. Not that the kid didn’t deserve it too.