How to make sure the sharpest texture possible?

There is no way to mask such images in RealityCapture. You need to do it in other application.
As I mentioned, the best option is using the focus stacking.