Yes you could definitely make an argument that democrats benefit from poverty, or that republicans benefit from illegal immigration. People in poverty receiving benefits vote democrat because they're afraid republicans will cut benefits. People who fear illegal immigrants taking their jobs will vote republican because they think republicans will be tougher on illegal immigration. If democrats actually solved poverty or if republicans actually deported 100% of illegal immigrants, a lot of people would lose their reasons to vote for those parties.
Arguably by the same reasoning, republicans benefit from legal abortion and their finally getting Roe v Wade reversed was terrible for their electoral performance.
Arguably by the same reasoning, republicans benefit from legal abortion and their finally getting Roe v Wade reversed was terrible for their electoral performance.