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.