The sidebar title currently has margin-bottom, but this probably should have been removed when we added the gap argument to sidebar().
An alternative idea would be to include common typographic block elements, like h1, h2, p, etc. in the list of elements whose margin bottom is disabled by default in a gap-spaced context.