Your question says: "I am just curious whether there is a package that already does this sort of thing more efficiently/flexibly." So you are asking for a software library.
I think you are getting caught up on the word "recommendations". It doesn't matter whether what you're asking for is people's subjective judgement, because questions asking for a library that does something are automatically off-topic. Unfortunately the message you were shown doesn't communicate this very well, but the help centre is clearer (emphasis mine):
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
So it doesn't matter whether an answer would be a "recommendation" or not. That said, it definitely involves making some kind of opinion or judgement to claim that a library does something "more efficiently/flexibly" than some other option. It would be totally reasonable to describe a hypothetical answer like "You can use library XYZ, it is efficient and flexible" as a recommendation for library XYZ.
The fact that your title has a similar wording to a different question that would be on-topic, doesn't make your question on-topic. What makes a question on-topic is defined in the help centre, linked above.