If it is inflamed, it needs rest, not a hard workout.
Some people are used to riding through "the pain barrier". This may be OK with aching muscles, which can recover the next day, but an injured or inflamed joint is another matter. Do what your doc says.