You stretching it a bit. Also you cutting scripture in half, it clearly says they returned to Galilee, to their own city Nazareth. Also according to Matthew the angel came to Joseph in a dream when they were IN Bethlehem and told them to flee to .egypt and that very night they fled. No mention of going to Jerusalem at all.
You can go through and find things that arent there, but that's what you choose to look for. I'm just looking at what the Bible plainly says for each gospel. Also in context Luke was referring to the purification ritual and the sacrifices required for a firstborn son.
I take it that you don't believe in the inerrancy of the Bible. I do. Matthew's and Luke's accounts are God-breathed Scripture. They're in perfect harmony with each other and never contradict one another. I was merely suggesting ways to interpret the chronology of events because I thought that's what you were requesting. Adios.