Decently different, but can be similar.
Technically racing is trying to beat someone to a specific place in the shortest amount of time.
Competing is when you try to beat someone at any given thing.