Tracking with and without Cookies on same website possible?

We would like to compare the tracking numbers with and without cookies. Is it possible to embed Matomo on a page twice (with different ID’s of course) - once with cookies and once without? Or do the two get in each other’s way?
What is your opinion or experience on this?

You can add a visit custom visit dimension (to store the fact the cookie is there or not). Then you’ll be able to create a segment based on this dimension. And also be able to compare these segments.