Microsoft MVP Sander Berkouwer, writing on The Things That Are Better Left Unspoken noted that Dynamic Memberships offer a way to get around possible overlaps between the Azure AD P1 and P2 licenses.