Beltline trim (where the roof joins the rear deck) sealant

Now my 2004 is ready for paint, i am looking at what type of sealant to use when reinstalling the body trim at the base of the roof where it meets the rear deck. It’s the same gooey stuff that holds the inner door membranes on. Any recommendations?