But you don't need hypotheticals! The defunct Juicero required a wifi connection to "check the packet's expiration", but was enforcing use of their proprietary fruit packets. (Can't find an authoritative source atm but it was what everyone assumed and what their business model effectively required[2].)
And IIRC Keurig seriously considered doing this or had already implemented it.
[1] https://arstechnica.com/gaming/2020/01/unauthorized-bread-a-...