No, that's not exactly the same. The powers of the president are not universal. Intent does matter. You said yourself that abuse of lawful authority, does matter. It the president had said, for instance, I'm banning the all the nations on this list because I don't want Asian people here, you can bet that the USSC would have not viewed this in the same way as it just recently ruled. The question is whether Trump banned these nations currently on the list because he didn't want Muslims to come here. Had he simply done what he did originally, and not opened his mouth, he probably could have made the original ban fly... but he did. He called for a ban on Muslims coming to the United States, was smacked down, and then paired it down a bit. The question is whether he still had that as his intent, but made moves as far as he could (also attempting to conceal his intent), to get something approaching his original statement.
I believe I erred and made a mistake in my logic, so I was wrong, but for a different reason.
Under several amendments to the Constitution there are limits to how the State can act due to bias. In the Masterpiece Cakeshop v Colorad Civil Rights Commission (the bakery case) the court considered "the historical background of the decision under challenge, the specific series of events leading to the enactment or official policy in question, and the legislative or administrative history, including contemporaneous statements made by members of the decision making body." In this case the court didn't decide AT ALL whether or not the baker could be forced to bake the cake, only that the CCRC used a bias against religion to make its determination. Ergo, it isn't "abuse" but "bias" that SCOTUS is taking into account.
So for consistency the majority of the court did not find any credible bias from the administration toward the immigration ban, but it did find bias against religion in Masterpiece.
Whether we like it or not the strength of the appearance of bias can determine the fate of the case.
Regards,
Doug