Here's how to avoid that. Pick shorts for your ride that are comfortable and won't get in the way.
Stretch shorts have few seams and the tight fit keeps material from rubbing in all the wrong places.
Wear a breathable short-sleeved shirt. Biking jerseys are cool options and can be purchased in bright colors for higher visibility on the road. Select shoes that are comfortable and won't interfere with your pedals. Too much traction on your shoe could catch on the pedal. Consider lighter colored clothing, a reflective vest or clothing with reflective panels to increase your visibility on the road.