No one gun is necessarily better than another, but there are differences between the brands. The Glocks have existed for a longer time than the Rugers. They are often used by law enforcement. The SR series from Ruger hasn’t been on the market for as long. The Glock is more compact so it is better for concealed carry, except Ruger has the SR9c which is the SR9 but smaller, with the same grip as the SR9.