Mr. Mike
Welcome to the forum.
Should it last longer, yes - but a component in any car can fail prematurely.
I don't recall seeing many 2019s with AC issues.
The '17 seems to have a lot more AC issues, mostly with the condenser.
I'm on year 11 on a MY12 without a problem but maybe they don't make them like they used to.
Sorry you are having problems, but you do make a cautionary tale case for getting an extended warranty.
As far as future ongoing repairs, you can do a lot better in some cases than the dealer for repairs if you shop around, especially for parts, as dealers typically charge full retail.
Subaru doesn't manufacture their own compressors, so a "Genuine" Subaru part only provides you with the pretty blue box it comes in that gets thrown away.
You may find the same compressor at half the cost the dealer charges.
With any quoted expensive repair, it pays to shop around.