Buddha has many ways to liberate sentient beings, whatever benefits sentient beings Buddha definitely does
Therefore, for us it is not smart to say that Buddha taught only Hiayana, or Buddha did not teach Vajrayana teachings. Because we do not know actually. Sometime we make mistakes with our ordinary minds. Sometimes to say that Buddha did that, only that, that much, no more than that, as if we make decision for Buddha (laughing). That is not a very smart way because Buddha is beyond the mind of conception. Buddha has many ways to liberate sentient beings, to benefit sentient beings, so whatever benefits sentient beings, Buddha definitely does. Therefore, Buddha taught all levels of teaching, different levels to different levels of people.
Hungkar Dorje Rinpoche, “Introduction to Longchen Nyingthik (Part I)”