I think the "scratch" in your photo is just the rim seam. Rims start out as long pieces of aluminum that are rolled into hoops, and either pinned together (your rim) or welded together and then machined.
If the rim seam has a raised lip that catches the brake pad, you can try sanding it down carefully (not too much).