> A p element's end tag may be omitted if the p element is immediately followed by block-ish element, or if there is no more content in the parent element.
> This doesn't apply if you are doing weird stuff in a non-block-ish element, or a media element, or a custom element.
is the easier way to think about it usually