Affinity Photo

One of the top competition to Photoshop, has most of PS’s features and a similar UI. The company has been making graphics software longer* than Photoshop has been around.
https://affinity.serif.com/en-us/photo/

It normally retails for $49.99 but sometimes goes on sale for $25 (Black Friday is one possible time). One time license, NOT a subscription. Has a free trial.

Does panorama stitching, and HDR, and Focus Stacking. Inpaint tool is also useful. Lots of tutorials both on the Affinity site and third party Youtube videos.