Plenty of tech companies are both. Any proprietary SaaS company is competing with other SaaS offerings, but a primary goal of their "capitalist" competition is to acquire and lock users into their platform, so they can kick back and collect their fees from the locked-in users. If they have a monopoly share of users, it doesn't matter if their platform sucks.
Apple's gateway drug is it's devices. Which - so far - they still sell rather than lease/license (hardware that is - software is merely licensed). But once a user is sucked inside the fiefdom, Apple "owns the land," and leaving is made intentionally painful for the majority of tech-illiterate people. Plus one must continue to buy high-margin Apple devices, which are obsoleted on a regular basis. There's no competition inside the fiefdom, for any products or services.