CBD oil is not the same as medical marijuana. It's made from a different plant.
CBD oil can be made from hemp, but it is best when made from cannabis. It depends which is legal in your area. If the condition is serious (say, cancer) Id make an effort to get cannabis CBD.
Cannabidiol comes from Cannabis sativa, either the hemp or marijuana varieties. No difference. It is the other stuff that differs.