You’re almost there. Yes their primary role is to protect capital interests through systemic oppression. They selectively enforce certain laws over others.
They will beat down peaceful leftist and progressive demonstrations through the enforcement of petty law breaking like jay walking. I’ve been witness to this. They could do this here but they choose not to because capitalism requires systemic racism.