Should I use past perfect or past simple?

Solution 1:

Here, both the sentences are correct in their own places.

In the second case, you could afford to be late because (you perhaps knew that) the bus hadn't arrived. There was enough gap between the two actions: being late for registration and non-arrival of bus.

In the first example, 'being late for registration and non-arrival of bus' are two close actions.