In older versions of the OZ ERC721 library people would override _beforeTokenTransfer if they wanted to make an NFT non transferable. Now that function is gone in version 5.
It seems to me that all transfers after minting route through transferFrom, so if you override transferFrom to always revert, the NFT becomes non transferable. Is this sufficient or is it necessary to override _update?