I would have accelerated and stayed right in front of the bus until it got to the stop. If the stop was far away, and the bus was still going full speed to get to it, I would have pulled off on the right and tailed behind the bus. If for some reason the bus was going really fast right up until it got to the stop with no space to pull off on the right like you say, I would have moved to the left of the bus and let it pass me on the inside to get to the stop. In most cases, a bicycle is faster than a bus slowing down to a stop.