If "they look the same" means that they are the same textual - then convert the values to strings and compare the strings. An easy way to convert a string is to display the value to a string port. Depending on context you could even use ~a to do the conversion.
If you only need to generate YAML, not parse it, I've taken advantage of the fact that YAML is defined as a superset of JSON and just used Racket's json library to write it. There are some YAML features that can't be expressed as JSON, but I've never needed them in practice, and I think many YAML-using programs don't even support them.