Another factor that could have led to the demise of HP calculators was Texas Instruments' partnerships with textbook companies. When I was in high school, many textbooks had TI-83 examples and exercises. My impression is that HP's calculators were marketed to college students and engineers, while TI marketed its calculators to the much more lucrative middle and high school market. Thus turned out to be a winning strategy for Texas Instruments.
As a computer scientist/software engineer, I seldom use handheld calculators anymore. I use the Unix dc command whenever I need to make quick calculations, and I have LibreOffice Calc, GNU Octane, and REPLs available (such as Python and Common Lisp) whenever I need to perform more complex calculations. If I must calculate something away from my computer, I can use my iPhone's calculator app. I would imagine that this killed the traditional market for HP calculators; why spend the money on a bespoke handheld calculator when most engineers have access to computers and smartphones?
However, in a classroom setting I wouldn't be allowed to use my iPhone. Texas Instruments did a good job courting the classroom and standardized test markets. HP might have figured that it didn't want to compete against TI in this market.
With that being said, I wish I didn't miss out on the HP-15c special edition that was on sale briefly in 2011; I didn't hear any announcements until it was already sold out.
When I was in high school virtually everyone had a TI calculator but I couldn't afford one. At college we were required to own an HP-48. I don't recall paying $500 for it, but maybe I did and I just forgot. It doesn't seem like the kind of money I would have had at that time. I still have it and it still works perfectly, which puts it in league with my Tektronix analog oscilloscopes in terms of legendary durability.
In engineering school, the HP-28, -42 and the new -48 series calculators where dominant. The build quality and "feel" were great. I don't even know if there was an equivalent TI model at the time.