Not very successfully.
> your printer tries to stop you from using ink cartridges from a different manufacturer
I can inject ink into the port, for cheap.
> your car will often strongly discourage you from getting it serviced by anyone other than an authorized dealer.
Only the top-range cars, for rich and upper-middle-class people, who have the ability to buy different but won't because it's a silly status symbol.
My wife lost her purse with (it turns out) the master key to my minivan. The minivan is maybe worth $4k. (I'd have to fix it before I could sell it.) Getting the key replaced is $750. Because that is what Toyota wants to charge and nobody else can do it.
If I had an older car, it would be a cheap visit to the local Home Depot to duplicate the remaining key.
I haven't replaced the key. I don't value the threat model that they theoretically protect me from. I do value the convenience of being able to replace the key. But it isn't worth $750 to me. Instead that is just one of several things that are on my list of "replace if X happens".
A better comparison would be walking to the checkout line with $brand_A sugar and watching the clerk put down $brand_B and start the motions of scanning the barcode forcing you to make the active move of stopping them to say "no, I know what brand I picked out, get out of my way and let me buy $brand_A"
Simply suggesting a what works best on the side of a box can't reasonably be compared to actively halting an operation deliberately initiated by the user.