I tried the above method and it works, but you should not edit core files. Create a module with a app/code/{namespace}/{module}/etc/fronend/di.xml file like this (M2.4.5) <?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<!-- Disable Venmo Buttom -->
<type name="Magento\Paypal\Model\SdkUrl">
<arguments>
<argument name="unsupportedPaymentMethods" xsi:type="array">
<item name="venmo" xsi:type="string">venmo</item>
</argument>
</arguments>
</type>
</config>
... View more