It seems to me, that it might be more complicated than that…
For example take a specific file from a repo: discourse/CONTRIBUTING.md at main · discourse/discourse · GitHub The iframely link says no embed code: Welcome to Iframely but then Discourse itself / onebox happily embeds it:
If iframely was correct, then neither the repo link, nor the file link would work. But one does and the other doesn’t…