A person attends majlis aza but due to majlis he cannot pray namaz awwal e waqt. What is better – to pray on time or attending majlis?

If it’s just one time, then it’s ok one can attend the majles then perform the namaz later. But if it’s an ongoing situation, then the person must give priority to namaz by praying then attending the majles, or the person can get up from the majles, pray, and go back in.