Trying to understand what are the use cases for a "require" statement and when would it be better to revert using an error:
For example
require(msg.sender == owner);
Or
if (msg.sender != owner) revert FunctionRestrictedToOnlyOwner();
I intentionally omitted any string explanation since I understand those are expansive.