I have the following sentence that I don't know which preposition is the correct one.
Diversification implies a trade-off between selecting data of relevance to user intent and diversifying data with/of similar characteristics.
A quick search on Google for "data with similar characteristics" returns 417,000 results while "data of similar characteristics" returns 265,000 results. However, I think "of" is the correct one in this case since it can emphasize the "similar characteristics" part.