I love this blog post by literary agent Laura Zats on comp
etitive titles vs comp
arison titles--you might find it useful:
https://redsofaliterary.com/2017/07/21/notes-from-the-armchair-the-curious-case-of-the-comp-title/
For a competitive title, it should indeed be recent, but I see no reason why you couldn't use just one: "The humor, historical setting, and speculative thread of [my novel] will appeal to fans of THE GENTLEMAN'S GUIDE TO VICE AND VIRTUE."
For a comparison title, one is also fine, and it can be from any period, if you have a clear and interesting twist.
Aliens was pitched as "Jaws, but in space." If your novel is about a girl who falls down into a fantasy land--only it's from the perspective of someone who lived in that fantasy land already and liked it just fine before the brat dropped in--you could call it "Like
Alice's Adventures in Wonderland--if it were told from the perspective of the Red Queen." Make sense?
Like others have said, comp titles are nice, but not essential, so don't agonize over it if it doesn't seem to be working for your particular project.