Yes, the objective of Democrats is to achieve Democratic policy goals. That's why Democrats have, in fact, already indicated that they are willing to support a bipartisan GOP Speaker who will make a deal with Democrats to help achieve some of those goals.
What they are not willing to do is support a GOP politician who offers nothing to Democrats in order to defeat a different GOP politician who also offers nothing to Democrats. It's a distinction without a difference, because either way Democratic policies will not be achieved.
In other words, there is no reason to support GOP politicians who are not willing to help Democrats. There is no reason to support someone like McCarthy in order to defeat someone like Gaetz. Because neither one wants to help Democrats achieve Democratic goals. Their superficial difference - i.e. steadfast opposition to Democrats based on expediency (McCarthy) vs extremism (Gaetz) - is irrelevant.