There are big differences between the consumption of the victim's resources by ads and their consumption by cryptomining.
Firstly, whatever resources are consumed by ads, resource consumption is not intrinsic to their nature. In other words, the effectiveness of an ad does not depend on how many resources it uses on its target's device.
Furthermore, the resource consumption by ads can be argued to be a real creation of value, in the sense that the advertiser could not make money from running ads on their own devices without any involvement of their targets. Neither is the target being deprived of any profit that they themselves might have wanted. Would the target wish to run their own advertising aimed at themselves on their own browser to promote their own product and/or track their own browsing habits? Of course not.
Compare that to covert cryptomining. The cryptominer could achieve the same result by running the code on their own devices, and paying for the resources consumed. On the other hand, the target is being unknowingly deprived of the profit being generated by the resources that they themselves are paying for but chose not to employ in cryptomining. Would the target like to use X% of their electricity bill, sacrifice Y% of their device's resources, and Z% of its durability lifespan to obtain a certain amount of a cryptocurrency? Maybe.
My argument is that most ads will collect personal data and you no longer have control over how it's going to be stored/used. A miner in comparison only mines cryptocurrency but doesn't otherwise have any long-term impact.
Also, ads can have negative impacts from the thing that's being advertised if it ends up being a scam, dangerous/fake/misrepresented product or malware.
You are right that the effects of internet advertising (assuming trackers etc.) on the individual can be understood as long-term, but in that case at least the operator is undertaking two risks:
1) The long-term validity and usefulness of the data they are gathering. A user may be relatively net-savvy regarding the use of private browsing, they may rescind their consent on this or that advertising network to track them, their visiting son or daughter might give their device a "privacy clean-up", or they may be ironically so digitally illiterate that when their phone dies or they forget their passwords they just create a new Google account.
2) The legal risks involved in gathering, and particularly exploiting, non-GDPR (or other local law) compliant data.
With non-consensual cryptocurrency mining, both points become irrelevant. Once it is mined, cryptocurrency is a pure commodity, regardless of legality and the consent or future opinions of the person whose resources were employed to produce it.
What if you explicitly ask for the user's consent? E.g. a confirmation prompt saying "To unlock this content we will use your CPU to mine.".
I know Coinhive originally started like that, for this Polish imageboard where you explicitly had to allow your CPU to mine in order to get premium account time, as an alternative way to just paying for it outright.
If the request is honest and straightforward regarding the resources being consumed on the user's device, to what extent it may or may not impact them, and how it benefits the operator, I would have no problem with it beyond my personal misgivings with cryptocurrencies. That is, as long as the consent is not easily confused with just another cookie checkbox to which most web users have become desensitised.
Firstly, whatever resources are consumed by ads, resource consumption is not intrinsic to their nature. In other words, the effectiveness of an ad does not depend on how many resources it uses on its target's device.
Furthermore, the resource consumption by ads can be argued to be a real creation of value, in the sense that the advertiser could not make money from running ads on their own devices without any involvement of their targets. Neither is the target being deprived of any profit that they themselves might have wanted. Would the target wish to run their own advertising aimed at themselves on their own browser to promote their own product and/or track their own browsing habits? Of course not.
Compare that to covert cryptomining. The cryptominer could achieve the same result by running the code on their own devices, and paying for the resources consumed. On the other hand, the target is being unknowingly deprived of the profit being generated by the resources that they themselves are paying for but chose not to employ in cryptomining. Would the target like to use X% of their electricity bill, sacrifice Y% of their device's resources, and Z% of its durability lifespan to obtain a certain amount of a cryptocurrency? Maybe.