To be pedantic I don’t think the 3-batter rule mentions relief pitchers. If a team wanted to use an opening pitcher to face only the first batter and then replace him, that would also be against the rules.
It’s truly a shame that I had to mention this because it adds nothing to the conversation.