This is a PS to my previous post. Some of my family were from Castlebar. Regarding the comment about some of the registers being "in great disarray". I eventually found all baptisms of one family by reading each page for the appropriate time span. I should say "peering at and scrutinising each page". Some transcriptions were way out. I had the advantage of civil birth registrations for the youngest children, so there was a DOB to search around.
Since all you have as a POB for Matthew Donnelly is "near Castlebar" he may not have been born in the parish itself. He may have stated Castlebar as the name of the nearest large town. If you can't find his baptism in Castlebar, search adjacent parishes. At least you have his parents' names and mother's maiden name. If you still can't find him, start a new thread.
Moran is an extremely common name in Mayo. I suggest concentrating on Matthew Donnelly for now as you have more info on him.