I did exactly the same moves as you did, and in the end I only got the epilogue with Matthew.
The code in the epilogue scene for cuck here says if 1002 or 1003 is true, then show the Matthew images, if not, then show the Martin images. You can see in the screenshot below the condition says true, but if I click on the second line in URM, I get the Martin images.
However, you get 1002 and 1003 on the Matthew cuck path, which is all good:
But you also get this, a few lines down, which is not good:
So if I read it right, option 1007 is the combined set of choices that says "cuck with Martin", but the exact same set is put together for 1002, which is "cuck with Martin
and Matthew". So I think the code to set option1002 needs to have "
and option51" (which is when Patrick gives Emma the go ahead to flirt with Matthew, because they're both adults) - all the other options listed there (28, 32, 36, 41) are from either neutral cuck or specifically Martin cuck choices. Alternatively, ask it to check in the epilogue for option1007 instead, which would prioritise the Martin scene (since he's had all the focus in the game until the end), and only show Matthew's scene instead when
not on the Martin path...
TLDR: It's another code fuck-up, if I'm not mistaken.