Just make sure beforehand that they're supported by LineageOS. Then you can wipe the OEM crap and run software you trust instead (assuming you trust the LineageOS developers).
If they're the kind that's sold artificially cheap under the assumption that they can make up the difference by showing you ads for the whole lifetime of the device, running a different OS has the added benefit of eating into their profit margins.