Replacing golf balls?

I’ve played putt-putt golf but never regular golf. I just saw something on TV that prompted this question. If you hit a ball, it seems you are allowed to pick it up, clean it, and place it back where it was before you take your 2nd swing. Would you be allowed to simply replace it with an identical, but clean, ball, rather than taking the time to clean it? If the answer is different for friendly games versus professional, please point that out.
I guess I would assume that friends can decide whatever they want. But then, from your experience, will friends allow it, or is it more that people simply don’t think of replacing the ball — they’d rather just wipe it off?

You finish the hole with the ball you started the hole with. Unless: (a)If the ball is damaged while playing the hole, ( and scuffs don’t count) you can announce to your competitors you have a damaged ball and intend to replace it. You can then replace the original with a new one. They have the right to inspect, though few ever do. That’s the rule. Friendly games may have their own rule.
(b) you lose it out of bounds or in a hazard. You would proceed under the rules for a drop or re-tee.
Pros play the "one ball" rule, also. You have to play the same model of the same brand. If you start out with Pro V 1X’s, you can’t switch to Pro V’s.
edit: in friendly games, alterations to the rules are made prior to teeing off. You can negotiate whatever you want. As long as all agree to play the same way, it would be fine. Rules are meant to define a format for all to play by. It is just a game. Unless you play in organized tournament golf, it is ok to play your own game.