the higher octane has more resistence to detonation which means it's more difficult to burn. so if you run 93 in a car that was intended for 87 you are hurting performance unless you advance ignition timing or do motor work that requires higher octane.
quality of gas really depends on the supplier not the octane rating.