Managing CODEOWNERS file across different branches

In my current project, we have a CODEOWNERS file, which is different across multiple core branches, worked on by different sets of the team, which necessitates different users listed in that file. Because this file is different, merging between the core branches can now be quite a chore, as the developer doing the merge now needs to be cognizant of differences of that CODEOWNERS file between the branches, usually modifying it to match the branch they’re merging into.

Is there a less-cumbersome way to maintain different CODEOWNERS files across branches of the same repo, without needing to make an edit to a merge commit, or an entirely new commit, every merge?

Hello, I am having the same query. Please let me know if you have found a solution. I will appreciate it.