You are confused what cars are in what class.
Mustang = muscle car, period.
Porsche 911= sport car, period.
M3= luxury sedan/coupe or you could go as far as saying luxury sport.
These 3 cars are in NO WAY related and all 3 of these cars were built with different purposes in mind.
There is a wiki article on pony cars. Check it out.