All that said, our local CU does in fact keep their own mortgage portfolio. This may be rare, I don't know. They're a large CU associated with a government contractor.
When I bought my house they had the best deal (rate + closing costs) hands down. When I refinanced they were no longer offering 30yr loans on their portfolio (and I wasn't interested in 10/15), but still were originating them to sell. Unfortunately the 30yr rates were not as quite good as I could get elsewhere and closing costs were close to a wash so I went another direction.
Dealing with the local credit union was super easy for everything. Not that HSBC was bad, but the credit union was always local people to talk to and never any problems.
I had a loan that got passed around a number of times back in the day, ending up with Countrywide each time.
That said, they were phenomenal during the whole origination process, and they gave us a rock bottom rate (2.375%).
My only fear is servicing being transferred multiple times, rapidly, then having to decipher who to pay now.
Credit Unions tend to be different (at least the 3 I'm a member of, maybe this is not universal) in keeping loans in-house.
The banks will indeed most likely sell off the loan as soon as it's done.
Not that it matters either way.
If you have a good working relationship that you can used for good terms, then go for it. But don’t go with a local bank because you think you’ll continue to work with them.