The problem is indeed Apple’s pricing. I’ll explain why.
OP, you’re comparing Apple’s pricing vs. competitors. I believe Apple has artificially driven up pricing across the industry in what was nearly a commoditized product. You almost get to this point at the end, I think without realizing it. Let’s compare Apple to itself.
In 2008 I bought a Dell computer for $1,179 (Canadian dollars). Later that year I bought a first week unibody Macbook with the same specs for $1,400. The Macbook had a lower rez screen but better contrast; otherwise identical specs except for much superior build quality.
Inflation adjusted pricing for the Macbook at $1,400 is $1,669.57 (today’s dollars). The next year the price was reduced $1,250 ($1,490 today’s dollars). We now gain retina screens and SSD’s and lose optical drives and ports. SSD pricing is now comparable to platter drive costs of the day. High rez screens have also become commoditized. We can call component cost a draw, although it probably favors a price reduction.
One big hit comes with storage costs. 500 GB had become a standard amount of storage on a Macbook. A current Macbook Pro with similar storage is $2,199 (Canadian) and an Air is $1,949. The least expensive current Mac is $459 (2019 dollars) more than previously established pricing.
One thing that 2008 Mac gave me was reliability. It’s still in daily use. I don’t have this faith in the current Macs. The Dell failed and was fixed under first year warranty. It died totally again a few years later. The Mac was well worth the 19% pricing premium. Now we’re paying more and in terms of reliability I believe we’re getting less. The value is gone.
Apple's products are more expensive not because of their quality, but because of the perception of their uniqueness.
Computers are all commoditized products, as you mentioned. They are all basically replaceable by similar products, and no company has the upper hand here. The computers manufactured by one company use the same processors, screens, memory, storage, as the computers manufactured by all the others. So, there should be no price difference here.
Apple is in a unique position, as it makes its own OS. Some people may find it better than Windows, and some people may find it worse. But the competitive advantage is that macOS and Windows are different; and that, while all companies are allowed to make computers running Windows, only Apple can sell computers running macOS.
So, Apple created a market of its own here, and the more people find Macs unique, more it will position itself as a monopolist, and control the prices. Apple is not evil because of this, as this is the dream of every company. In a way, this is not a bad thing: companies who keep some decent margins are able to offer better quality in their products. Of course, if prices are too high, people will move to Windows machines, as they are replacements for Macs, although not the same products, in the minds of consumers.
Coffee and tea are two very different products. But people who consume coffee will begin consuming tea if the price difference becomes too high. Apple will make Macs expensive, but not so expensive to the point of making them unattractive to their public compared to Windows alternatives. The same logic applies to the iPhone and to all other Apple products.
One way of trying to avoid this is keeping people locked in Apple's ecosystem. If you are too integrated into Apple's ecosystem, you may agree to pay a higher price for the convenience. But there is a limit to that as well.
So, Apple's products are expensive. Yes, they are, but not overly expensive, given that people can move anytime to other products.