I generally use Lightroom for all my raw processing and avoid Photoshop unless I am replacing a sky or a similar composite.
One of the tools I use a lot in Lightroom is the Adjustment Brush and the AutoMask feature in that for edges.
Although I have updated to version 10 and therefore cannot show a side-by-side comparison, but, the change from the earlier version is quite visible even in normal masking.
Let’s take a brief look at this issue…