Filtered by IdsQuery vs by TermsQuery

In a filter context they are both rewritten to a lucene TermsQuery, so it shouldn't make any difference.