Toyota, along with most Japanese car manufacturers, are betting big on hydrogen cars. They still invest in electric cars, but their main focus is on hydrogen-fueled cars. So I doubt they'll be buying TSLA.
Here is a good article on the direction of the japanese car industry.