What's the difference between .scalar_type vs .dtype?

What is the difference between these two methods on tensors?

There should be no difference as ScalarType is the C++ side for dtype.

The reason I ask is because I notice that they have different return types:

Screenshot 2025-05-22 at 9.12.02 PM

I see they are convertible to each other, should we just always prefer scalar_type then?