Context is important. Literally the next couple verses in both passages say something along the lines of "The disciples asked, ‘Then who can be saved?’ Jesus said, ‘With people it is impossible, but not with God; for all things are possible with God.’ "
According to the Lexham Bible Dictionary, “most scholars reject this interpretation because the meager textual evidence most likely can be attributed to speculations about this verse by some church fathers.”
According to the Lexham Bible Dictionary, this interpretation “dates back to the fifth century and suggests that kamelos, the Greek word for camel, should actually be read as kamilos, which denotes a rope or a ship’s anchor cable. … However, most scholars reject this interpretation because the meager textual evidence most likely can be attributed to speculations about this verse by some church fathers (Origen, Cyril of Alexandria; see Fitzmyer, Luke, 1204; Barclay, Matthew, 239).”
They also disagree with the gate interpretation, saying that “Scholars have found no historical foundation for this view, and no evidence supports the existence of such a small gate in Jerusalem’s walls.”
What is Ghost?