Swim shorts usually have a liner inside and are made of material that
won't discolour or degrade due to chlorine. Running shorts may degrade
in chlorine. I recommend buying "jammers" for swimming, which are tight
shorts about the same length and appearance of a cycling short, as they
are more hydrodynamic and suitable for extended workouts.