I've wondered how they'll draw the line on this. If Amazon or Apple has a buy button and it means you get to have ongoing access to the content for as long as Amazon/Apple is around, then for a 30 year old person there's a decent chance that's as good as buying the thing. But if it's hazier, as in the case of Sony's revocation based on losing rights in later years, then you're obviously not getting the same thing. How does CA's law apply to this continuum of circumstances?

What makes you think that this is "as good as" buying when the original post itself demonstrate clearly that it's nowhere close to actually buying something?

Is there something in Apple or Amazon terms which say they can't under any circumstances deprive you of accessing the content you have bought with their "Buy" buttons? I don't see why you are trying to assign a difference between them and Sony here?

We have words like leases, licenses, or renting for a reason and they are not new.

The companies which shifted their business model to renting in the digital age have perpetuated the "buy" buttons to make their customers think the transaction was the same as when they purchased a physical media... but clearly, and it's by far not the first case, these companies will deprive their customers of their "purchase" for many reasons that shouldn't be any concern for someone who actually "bought" something... like the companies suddenly deciding to stop paying for the rights of the thing that they alledgly "sold" to you.

So just as clearly, theses were not actual purchases but just licenses, non-transferable, allegedly "perpetual" but unilaterally revocable at any time with no refund.

I really don't see why you seem to think there is anything hazy about this, or hard to delineate. This law seems to cover the cases in which these companies abuse the language in question, Amazon and Apple are not "selling" you anything digital, you acquire a pretty limited license on all of these services.

I said "a decent chance that's as good as buying the thing". If these mega companies stick around and continue to offer access to the content, then it is as good as buying it (arguably better if you don't have to store it and can download onto many devices over decades). But note that this was all preceded by "a decent chance". There is also a chance that it won't turn out to be as good as buying, if the company goes under, gets out of that line of business, or loses access to the relevant rights.

One important question, which I don't know the answer to, is whether Sony is nuking stuff from your devices. If not, then they could claim that you bought the thing and can keep using it on your existing devices. If you can move the content from a PS5 to a PS6 in 5 years, then arguably it's fine to say you "bought" it. But if they're wiping the content from your local devices, then you've definitely not bought the thing.

Buy only means buy if you can use the product as advertised after breaking all ties with the vendor.

Let's not broaden this definition in favor of the vendor.

Is this an official definition defined in law?

I'm sorry what? There isn't some super secret legal definition of every word. Buy means buy.