Aside: on iOS the default camera app doesn’t do document scanning but the Files app does (it’s an option under the menu on the browse tab).
Took me ages to discover that, still not sure how long it’s been there.
The notes app also does document scanning in iOS and I’ve found it very very useful.
Yes, on my Samsung the camera app is great, and it gets better all the time. I know people like to crap on Samsung but they do some great things in some regards.