ag grid compared with angular mat table: DOM structure

I work with ag grid table and Angular 14.
I have a doubt that ag grid add more div or more something in DOM compared with Angular material table.
i can use that command in console with * or with class or id to calculate the number of elements.

document.querySelectorAll('*').length;

My question is : which one add more div in the dom if i use the same number of row and column.