Run a branch pipeline only if not a merge request?

I think you are attempting to do something that I have done. I am asking for advise on how to do this better but if you checkout my post I think it is similar in what you are attempting to do