REST is whatever WF has stored on their servers. UDP is whatever your station sent them to begin with.
The UDP is 'always' what the sensors (Tempest/Air/Sky) read at their current tunings, and it indicates what the Hub transmits to WF.
The sensors have limited storage for when they can't reach the Hub (hub down, usually), and the Hub has larger storage for when it can't reach the WF servers (power/internet outages, etc.) so both catch up gracefully. The effect is the Hub will emit appropriate catchup UDP to the LAN and transmit the same info to WF as needed.
The weewx reference UDP driver hears whatever UDP the Hub emits, whenever it emits it, and does the right thing.