@mui or @material-ui in Perspective Component Module

Does it matter if my Perspective module uses @mui (v5) or @material-ui (v4)? Do I need to match the exact version that perspective is using to reduce bundle size or is webpack going to bundle that in no matter what?