Bashing the second best selling .22 rifle in history isn’t going to help the OP. I’d challenge all of the sample size of X to the counterpoint that of the 3 I’ve bought, 1 that my wife brought in, and the one dad owns that none have had any functional problems as delivered. I know plenty of people who are owners with that same boring reliability story and no, the OP’s isn’t one of them.
Sure Ruger has a better trigger. They have precision barrels and chassis and walnut stocks too. Even come in bigger calibers, single-shots and bolt actions but this is a base model 10/22 being discussed and it is produced for a price point, end of story. I could say the same of plenty of manufacturers and not one of them is defect free across their line.
Send it to Ruger and they will fix it. Call them, get a label, send it off, and wait a few weeks. Excellent CS.