It is not a swap, the ai is trained to add textures and craters on top of the moon like all phones do to enhance photos, I am sick of telling people this, please watch mrwhosetheboss and MKBHD's videos on this. Please use your goddamn brains. Hell, you can go in settings and turn it off. Either the OP loves misinformation or they can't read.
I haven't seen it get mentioned on Tumblr yet but Samsung has just gotten caught in a hilarious scam: they apparently advertised how their latest phones can take great picture of the moon, compared to other phones!
But it turns out they aren't using machine-learning to clear up blurry pictures, they're using machine-learning to detect when you're taking a picture of the moon, and then they swap in a saved PNG file of the moon.
A reddit user figured this out by taking a photo of the moon from Wikipedia, blurring it in photoshop, then trying to photograph it from across the room with all the lights turned out.
Their Samsung phone somehow managed to "clear up" the blurriness and recover details that weren't there in the first place. Because it's just cheating.