Assuming both a and b are integers:
Yes the first one uses the method to index a single dimension twice with a temporary Tensor in the middle.
The second one calls the general indexing method that will handle this call in one go.
If they are Tensors or iterables, the story is a bit different as each indexing is advanced indexing but it will create a temporary Tensor either way.