I've been using unbranded batteries for Ryobi for years. They have a LED gauge and they outlast the OEM batteries. I did a major construction job this spring summer and only the OEM batteries failed.
YouTube in invested is selling you OEM batteries but seriously, they are made in the same factory as the unbranded ones.
In Canada, a Ryobi battery @4Ah is $158 each. Generic 2 pack of 8Ah are $56. How can there be a 680% difference?
I have a bank of a dozen batteries and have never had an issue.