President Barack Obama made a provocative comment during the memorial service for fallen Dallas police officers that suggested guns are easier to get than a book.

“We flood communities with so many guns that it is easier for a teenager to buy a Glock than to get his hands on a computer or even a book,” Obama said.

The line is a variant on one Obama has used before that compares the ease of obtaining a gun to the availability of fresh vegetables. It fits with his broader theme that failing to invest in education, poverty relief and gun safety spills over into larger societal problems.

But the gun comment drew an immediate reaction on social media.

The Washington Post has previously fact-checked the gun and vegetable comparison. It is true that fresh vegetables can be difficult to get in some areas, and yet the private sale of handguns is legal in most states. Private sales don’t always require background checks or waiting periods.

That said, a Glock in particular can be pricey. According to one gun website, a popular model called the Glock 17 sells for $599. A standard Dell laptop can be had at Best Buy for $299. Used books by contrast can go for as low as about a dollar each, and even new books retail for about $20.

Even accounting for a shortage of computers or bookstores in urban areas, and the widespread availability of guns, it’s unlikely there are teenagers with easier access to firearms.