0
It was not very clear if by optimization you refer to writing or efficiency, but if written, I believe that the ideal would be to replace this with an IN, example:
SELECT products.name, categories.name FROM products
INNER JOIN categories ON categories.id = products.id_categories
WHERE products.amount > 100 AND categories.id IN (1, 2, 3, 6, 9);
If it’s performance optimization, just create an index in the column
categories
.– Piovezan