Selecting multiple records by ID, is this syntax a bad idea?

Say I need to get 5, 10, or 50 records, and I have their record_ids. Is this style of syntax a bad idea?

{ filterByFormula: "OR(RECORD_ID() = 'reca9IDlX0gvu32ml', RECORD_ID() = 'recgh3XeMcdmX8uPj', RECORD_ID() = 'reczBZBWZG06DOsCO', RECORD_ID() = 'recXvnMcZKmxyBtUi')" }

I’m generating the innards of the OR with code.

Thanks in advance.