As described in https://www.itwinjs.org/learning/ecsqlreference/idset/#idset-virtual-table, IdSet virtual table should be a more performant version of the InVirtualSet function. Also, it's pretty much a direct replacement, so migration should be straightforward.
While it's still marked "experimental", @khanaffan confirms it's safe to use.
So I'm saying we should migrate to IdSet ASAP on tree-widget/next branch.