Self pardon by a POTUS is a subject of legal debate and non-agreement. Sort of like the definition of “natural born”
In other words, a Democrat could do a self pardon and get away with it, but a Republican could not.