The whole "charity is evil" concept is completely stupid, but you can never accuse Ditko of being a hypocrite as he refuses to take any kind of royalties from his work. That's probably why Sony was OK with putting Ditko's name in the credits of Spider-man since he wouldn't be making a cent from it.
BTW I think he's a fool for taking that stance but whatever, it's his life.