Are Trump, Gaetz and the like being selectively prosecuted and if so is that a bad thing?

Well, maybe. But trump used the power of his office to hide his records and thus delay prosecution for years. Other tax cheating schmucks are unable to do this.