Samsung brought some advanced edit features to its Photo Editor with One UI 6.1, powered by Galaxy AI. One of them was called Generative Edit where the app modified an object within a user-drawn circle, and now the feature got even better.
The latest version of Samsung Photo Editor also has a Magnetic Lasso, allowing the drawn line to snap onto objects.
Samsung Object Eraser with Magnetic lasso
The Magnetic Lasso can be used when a photo is opened in Gallery. Then you should go to click Edit and select Objects under Tools, and the Magnetic Lasso option should be in the top-right corner. It is turned on by default, but tapping on the button will turn it off.
The feature is available only to those who got the latest app version (v.3.4.21.41) through third-party stores; it is not publicly available on the Galaxy Store yet. Also, it is only for smartphones that are already running some version of One UI 6.1.