I am not a fan of this pattern - if I'm understanding correctly, you would have to part with all of yt-dlp's niceties like playlist/channel handling, quality selection, file naming, logging config etc.
Why not just use the whisper cli on yt-dlp CLI's output for videos with bad or no subtitles?