Catholics are required to form their conscience regarding Church teaching and then apply that as they discern candidates.
There are some teachings of the Church that Catholics may not legitimately have a diversity of opinions on them. These things are intrinsic evils-- such as abortion, euthanasia, stem cell research, same sex “marriage”, etc.
For example, abortion. Abortion is murder and voting for candidates who further the legal abortion agenda is wrong. If there are no candidates who are pro-life, a Catholic can choose the least evil among the choices available (for example, the candidate in favor of the most restrictive policy).
Some teachings of the Church allow for legitimate variation in the best way to carry out Church teaching. For example, economics. There are various theories and within those, Catholics can certainly have a variety of opinions on what creates jobs, what is best for a country, etc. So, Catholics can vote for candidates holding a variety of opinions.
This is complex because individual candidates may favor some policies and oppose others that are morally problematic. For example, someone could be against abortion but favor stem cell research. You might not find a “perfect” candidate. Catholics should seek to influence their legislators and work towards just laws in all areas. Catholics *could *vote for a “mixed” record candidate as a least evil choice.
One must strive to apply Catholic teaching to the extent possible.
You can also read Faithful Citizenship at the USCCB website:
nccbuscc.org/faithfulcitizenship/bishopStatement.html