That's not only "slightly different", that's the crucial difference. So no, they aren't "effectively the same", they are two completely unrelated cases. Would people please stop trying to use this dishonest and flat out false argument to support entirely wrong chains of argumentation?
Besides which, the work an artist/programmer has done is unrelated to the distribution of the result. If one expects to be paid for the actual work done, they have to seek other models. One that often comes up here is Kickstarter, where a form of contract is made - money for work done. Perfectly fine. Musicians have and always had concerts and merchandise as their source of income. Comissioned works are also possible, and are a very valid source of income. Additionally, there's patronage - which is, for example, basically the way Linus Torvalds makes his money.
I'm positive this list is by far not exhaustive.
So no, pirating something is not taking someone's work time, since their time and money spend for distribution is effectively zero.