Dialog is for modals, popover is for everything else
Briefly

The article discusses the differences between the <dialog> element and the popover attribute in web design. It highlights that the <dialog> element, particularly when opened with dialog.showModal(), successfully makes the rest of the page inert and manages focus effectively. In contrast, the popover attribute requires additional considerations to convey meaningful semantics. Despite the guidance often seen in examples promoting popover="auto", the author suggests using <dialog> for guaranteed merit and flexibility, especially when specialized roles are necessary.
The <dialog> element has an implied dialog role and, when opened with dialog.showModal(), it makes the rest of the page inert, managing focus automatically.
While folks often steer towards popover="auto", it’s important to note that the popover attribute alone does not guarantee semantically meaningful markup.
Read at Mayank
[
|
]